Enum lazy_async_promise::Message
source · Expand description
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.
Variants§
NewData(T)
Adding or setting new data to the promise, depending on the implementation
StateChange(DataState)
Modify the state of the promise, including setting an error