Crate pecs_core

Source
Expand description

Core Promise functionality.

Modules§

app
timer
Defers promise resolving for a fixed amount of time
ui

Macros§

Asyn
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§

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.
PromiseChain
PromiseCommand
PromiseCommands
PromiseId
PromiseState
A wrapper for state that can be passed to asynchronous functions and promises.
Promises

Enums§

PromiseResult
PromiseResult is the result of a promise, which can either resolve to a value with S state and R result, or it can await another Promise<S, R>.
Repeat
An enumeration used to control the behavior of a loop in a repeat(asyn!(...)) construct.

Traits§

AllPromises
AnyPromises
PromiseCommandsArg
PromiseCommandsExtension
PromiseLike
PromiseLikeBase
PromiseParams
PromisesExtension

Functions§

promise_discard
promise_register
promise_resolve