Pudu programming language
Menu
API reference

Std.Concurrent.Coordinate.withPermit

1 declaration

fn

withPermit: &Std.Concurrent.Coordinate.Semaphore -> fn() -> T -> Result[T, Std.Concurrent.Coordinate.CoordinateError]

Run an action holding a permit. The action runs on a thread of its own, so the permit is returned whether it returned or crashed; a crash answers Failed.

Back to Std.Concurrent.CoordinateSearch related declarations