Skip to main content

try_drain_and_kill

Function try_drain_and_kill 

Source
pub fn try_drain_and_kill()
Expand description

Like drain_and_kill, but skip the cleanup when another thread holds the registry lock. Use it from a panic hook, where a blocking lock can deadlock.