cancel

fun cancel(timeout: Duration): Boolean(source)

Cancels all coroutines in this scope and blocks until they have finished, or timeout passes. Returns whether they finished in time. Should be called during plugin disable.