Std.Concurrent.contain
1 declaration
fn
contain: fn() -> () -> Result[(), Std.Concurrent.ConcurrentError]Run an action on a thread of its own and wait for it.
A crash inside the action ends only its thread and is answered here as Failed, so a caller holding a lock, a permit, or a promise can still let go of it. This is the boundary every waiting construct in Std.Concurrent.* puts around caller code.
