close
Initiate the closing sequence of the coroutine dispatcher. After a successful call to close, no new tasks will be accepted to be dispatched, but the previously dispatched tasks will be run.
Invocations of close
are idempotent and thread-safe.