Expand description
Core Promise
functionality.
Modules§
- Defers promise resolving for a fixed amount of time
Macros§
- Generates signature an
Asyn
function wrapper. It allows you to specify the input and output state and result types in the human-readable form:Asyn![S, R => S2, R2]
.
Structs§
- A wrapper around a system-like function that can be used in various contexts within
pecs
. - Namespace-like stateful container for asyn operations used to simplify state passing through promise chain. For extending this container with user-provided methods custom extension should be implemented:
- A promise represents a value that may not be available yet, but will be in the future.
- A wrapper for state that can be passed to asynchronous functions and promises.
Enums§
PromiseResult
is the result of a promise, which can either resolve to a value withS
state andR
result, or it can await anotherPromise<S, R>
.- An enumeration used to control the behavior of a loop in a
repeat(asyn!(...))
construct.