sleep

@ApiStatus.Experimental
suspend fun sleep(duration: Duration)

Causes the current execution of the function invocation to sleep for the given duration.

Parameters

duration

for which to sleep.

See also

Throws

if called outside of a Restate handler