diff options
author | bdonlan <bdonlan@gmail.com> | 2020-07-21 15:26:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 15:26:47 -0700 |
commit | 04a2826084743e80762a32fcee912a3dfbb86a63 (patch) | |
tree | c2520afe3631061639a568d29d893eb822c4a64a /CONTRIBUTING.md | |
parent | 28a93e604454d435476eb8bb2eee809fd86b001d (diff) |
provide a way to drop a runtime in an async context (#2646)
Dropping a runtime normally involves waiting for any outstanding blocking tasks
to complete. When this drop happens in an asynchronous context, we previously
would issue a cryptic panic due to trying to block in an asynchronous context.
This change improves the panic message, and adds a `shutdown_blocking()` function
which can be used to shutdown a runtime without blocking at all, as an out for
cases where this really is necessary.
Co-authored-by: Bryan Donlan <bdonlan@amazon.com>
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions