Takes a suspended coroutine and makes it "dead" (non-runnable).
This function returns true unless the coroutine is in an error state, in which case it returns false and the error message.
A coroutine that is currently running cannot be closed. A coroutine cannot be resumed after it is closed.
Takes a suspended coroutine and makes it "dead" (non-runnable). This function returns
true
unless the coroutine is in an error state, in which case it returnsfalse
and the error message. A coroutine that is currently running cannot be closed. A coroutine cannot be resumed after it is closed.