This is an index page for the Guardian standard library.
GuardThe basic synchronization primitive. Also contains many static methods relevant to GuardVar and Cond.
GuardVarProtects a value behind a Guard. The most basic way of protecting an unsafe type so it can be shared between threads.
VarA simple wrapper around any type. This is used by a GuardVar to provide access to its value inside a task.
CondForms a condition variable over one or many GuardVars. This allows a task to be retried until a condition is met.
PoolThe thread pool; the root of all parallelism in Guardian. The most basic way to launch tasks asynchronously.
FutA future, i.e., a value that will become available contingent on the completion of an asynchronous task.
LoopHouses static methods for creating asynchronous loops.
CountdownLatchA way to schedule continuations based on the completion of a specific number of tasks (units of work).
ArrayA fixed-size array. The basic Array type is unsafe and shallowly immutable. Arrays also come in the following flavors:
VaultArray: Shallowly immutable array of vault types. Is a vault type.ValueArray: Immutable array of value types. Is a value type.MutableArray: Mutable array. Is an unsafe type.ListA dynamically sized, growable, unsafe list.
PartListA mutable, fixed-size list with machinery for splitting up work across multiple threads.
ReadPartViewA read-only slice of a PartList.
WritePartViewA write-only slice of a PartList.
ReadWritePartViewA read-write slice of a PartList.
ReadPartIntentIndicates that a PartList should be partitioned into read-only views.
WritePartIntentIndicates that a PartList should be partitioned into write-only views.
ReadWritePartIntentIndicates that a PartList should be partitioned into read-write views.
RandomA (pseudo-)random number generator.
OutA way to send output to the console.