Results for “Std.Sync.cell”
6 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Sync.Cell
A value more than one thread may read and replace.
- Std.Sync.cell
T -> Std.Sync.Cell[T]A cell holding a value.
- Std.App.measuring
&Std.App.App -> Std.Sync.Cell[Std.App.Metrics.Metrics] -> Str -> Std.App.AppThe application measuring its own traffic into a cell the program holds,
- Std.Sync.get
&Std.Sync.Cell[T] -> Result[T, Std.Sync.SyncError]What a cell holds.
- 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
