await

abstract suspend fun await(): T

Wait for this DurableFuture to complete.

Throws

if this future was completed with a failure


abstract suspend fun await(duration: Duration): T

Same as await but throws a dev.restate.sdk.common.TimeoutException if this DurableFuture doesn't complete before the provided timeout.