awaitClose

suspend fun awaitClose(timeout: Duration = 1.seconds)