cancel

fun cancel(cause: CancellationException? = null)

Cancels this coroutine queue, including all its children with an optional cancellation cause.