awaitResult

suspend fun awaitResult(result: Publisher<*>): Any?

Awaits what a Reactor-style handler returned, for the kernel (users may keep writing Reactor; only this adapter knows it). A Mono yields its value or nothing; any other Publisher (a Flux) yields everything it emits, as a list of events. The code wow-compiler generates passes the result on to decisionOf or eventsOf.

Awaited while deciding, the publisher is subscribed with the command being decided in its Reactor context (ReactorDecidingCarrier): a decide function calls a suspending Wow client inside mono { }, whose coroutine reads that context, so a call that stands takes its derived request id there too (#7046).