awaitTermination

private open fun awaitTermination(startTime: Long, wait: Boolean)