Expand description
Core Promise functionality.
Modules§
Macros§
- Asyn
- Generates signature an
Asynfunction 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§
- Asyn
- A wrapper around a system-like function that can be used in various contexts within
pecs. - AsynOps
- 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:
- MutPtr
- Promise
- A promise represents a value that may not be available yet, but will be in the future.
- Promise
Chain - Promise
Command - Promise
Commands - Promise
Id - Promise
State - A wrapper for state that can be passed to asynchronous functions and promises.
- Promises
Enums§
- Promise
Result PromiseResultis the result of a promise, which can either resolve to a value withSstate andRresult, or it can await anotherPromise<S, R>.- Repeat
- An enumeration used to control the behavior of a loop in a
repeat(asyn!(...))construct.
Traits§
- AllPromises
- AnyPromises
- Promise
Commands Arg - Promise
Commands Extension - Promise
Like - Promise
Like Base - Promise
Params - Promises
Extension