Kotlin coroutine bridge

suspend 확장이 CompletionStage를 기다리고 caller dispatcher에서 재개

Kotlin coroutine bridge suspend 확장이 CompletionStage를 기다리고 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

대기와 재개

  • • suspend 확장은 Java CompletionStage를 통해 HTTP operation을 기다리며 thread를 점유하지 않는다.
  • • CompletionStage가 완료되면 continuation은 HTTP client가 고른 곳이 아니라 호출한 coroutine의 dispatcher에서 재개된다.