timer

@ApiStatus.Experimental
suspend fun timer(name: String = "", duration: Duration): DurableFuture<Unit>

Causes the start of a timer for the given duration.

Parameters

duration

for which to sleep.

name

name to be used for the timer

See also

Throws

if called outside of a Restate handler