Kotlin coroutine bridge

A suspend extension awaits CompletionStage and resumes on the caller dispatcher

Kotlin coroutine bridge A suspend extension awaits CompletionStage and resumes on the caller dispatcher Kotlin coroutine · Architecture component Kotlin coroutine suspend extension · Architecture component suspend extension CompletionStage · Java client · Architecture component CompletionStage Java client HTTP operation · Architecture component HTTP operation caller dispatcher · Architecture component caller dispatcher complete resume

Await and resume

  • • The suspend extension awaits the HTTP operation through Java CompletionStage without occupying a thread.
  • • When CompletionStage completes, the continuation resumes on the calling coroutine's dispatcher, not on a dispatcher selected by the HTTP client.