Expand description

Primitives for combining tokio and immediate mode guis

List of primitives

The following primitives are implemented:

See these items for their respective documentation.

What to use

A general usage guide would be:

Modules

Macros

  • Send new data via the sender
  • Setting the given progress using a given sender.
  • Set state to DataState::UpToDate
  • Setting the given progress using a given sender.
  • Error checking in async updater functions is tedious - this helps out by resolving results and sending errors on error. Result will be unwrapped if no error occurs.

Structs

Enums

  • Represents a processing state.
  • The return state of a ImmediateValuePromise, contains the error, the value or that it is still updating
  • The message-type to send from the updater to the main thread. There’s only two variants, NewData which allows to send new data or StateChange which allows to signal readiness or error.

Traits

  • Trait for directly accessing the cache underneath any promise
  • Maybe this should rather be called “LazyUpdating”? Implementors can react to polling by queueing an update if needed. Update should force an update.

Type Definitions