CompletableFutureSessionService
Java-friendly wrapper around a SessionService that it owns. Each method calls the suspend method of the same name and returns a CompletableFuture of its result, so Java callers never pass a Continuation. Canceling a future cancels its call, and close cancels every call in flight, then closes the service if it is AutoCloseable.
Functions
Calls SessionService.appendEvent, which updates session in place on another thread, so leave session alone until the future completes.
The wrapped session service, for code that has dropped into Kotlin.
Cancels calls in flight, then closes the service if it is AutoCloseable. Every later call returns a canceled future.
Calls SessionService.closeSession.
Calls SessionService.createSession.
Calls SessionService.deleteSession.
Calls SessionService.flush.
Calls SessionService.getSession; the future completes with null if there is no session.
Calls SessionService.listEvents.
Calls SessionService.listSessions.