Results for “Std.Sync.SyncError”
9 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Sync.SyncError
Why a shared value could not be reached.
- Std.Sync.count
&Std.Sync.Counter -> Result[Int, Std.Sync.SyncError]What a counter holds.
- Std.Sync.get
&Std.Sync.Cell[T] -> Result[T, Std.Sync.SyncError]What a cell holds.
- Std.Sync.increment
&Std.Sync.Counter -> Int -> Result[Int, Std.Sync.SyncError]Add to a counter and answer what it then holds.
- Std.Sync.lock
&Std.Sync.Mutex -> Result[(), Std.Sync.SyncError]Take a lock, waiting until it is free.
- Std.Sync.set
&Std.Sync.Cell[T] -> T -> Result[(), Std.Sync.SyncError]Replace what a cell holds, discarding what it held.
- Std.Sync.swap
&Std.Sync.Cell[T] -> T -> Result[T, Std.Sync.SyncError]Replace what a cell holds and answer what it held, in one step nothing can
- Std.Sync.unlock
&Std.Sync.Mutex -> Result[(), Std.Sync.SyncError]Release a lock.
- Std.Sync.withLock
&Std.Sync.Mutex -> fn() -> T -> Result[T, Std.Sync.SyncError]Run an action with a lock held, and release it after the action returns.
