close
Initiate the closing sequence of the coroutine dispatcher. After a successful call to close, no new tasks will be accepted to be dispatched. The previously-submitted tasks will still be run, but close is not guaranteed to wait for them to finish.
Invocations of close
are idempotent and thread-safe.