await が直後に続いている async の呼び出しを報告します。 このような呼び出しは、ブロッキング呼び出しに置換できます。

例:


  suspend fun test(ctx: CoroutineContext, scope: CoroutineScope) {
      scope.async(ctx) { doSomeJob() }.await()
  }

クイックフィックス適用後:


  suspend fun test(ctx: CoroutineContext, scope: CoroutineScope) {
      withContext(scope.coroutineContext + ctx) { doSomeJob() }
  }