async_data
module · ferroui-view · v0.5.0
module async_data
Asynchronous data: a future run by a component and its state
(use_future), an element that follows that state (suspense), and a
future that waits on a timer of the dispatcher (sleep).
The futures run on the dispatcher of the thread
(Dispatcher::start_local): a future is polled for the first time when
it is started, and every later poll is a dispatcher job that a wake
queues, at the priority of the job that started it
(DispatcherPriority::DEFAULT outside of a job), on the thread of the
user interface, so what it reads and writes needs no synchronization. A
load that is replaced is aborted (JoinHandle::abort), which drops its
future. Nothing here blocks the thread.
Contents
AsyncState— enumuse_future— functionsuspense— functionsleep— function
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.