Crates.io | doomsday-clock |
lib.rs | doomsday-clock |
version | 0.8.0 |
source | src |
created_at | 2022-11-28 05:51:39.418168 |
updated_at | 2023-01-03 06:23:37.716793 |
description | Async runtime shutdown safety test. Handle with care |
homepage | |
repository | https://github.com/Bajix/async-local/ |
max_upload_size | |
id | 724141 |
size | 36,794 |
The validity of async-local
is predicated upon the guarantee that for a given runtime to be supported, shutdown sequencing ensures no tasks be dropped by thread local destructors. So long as this is the case, async-local
can synchronize runtime thread drops in a way that guarantees LocalRef
and RefGuard
never outlive the Context
for which they point to. Doomsday Clock is an async runtime shutdown test specifically designed to panic should shutdown not be sequenced in a way that will avoid dangling references using the techniques outlined within async-local
.