rewindAsync

fun rewindAsync(userId: String, sessionId: String, rewindBeforeInvocationId: String, coroutineContext: CoroutineContext = EmptyCoroutineContext): CompletableFuture<Void?>

Rewinds the session to before rewindBeforeInvocationId; see Runner.rewindAsync. The returned future completes once the rewind has been applied. The rewind runs in the caller's OpenTelemetry context and in coroutineContext, as in runAsync.