Module deferred
Expand description
Code a program fetches the first time it is used rather than before its first frame (the browser desktop’s lazily loaded modules).
The toolkit asks Deferred::get for the code where it needs it. Until
the program installed it, that returns None and, once, calls the loader
the program registered (Deferred::defer); the loader fetches the code
and hands it over (Deferred::install) or reports that it could not
(Deferred::load_failed), after which the next use fetches again.
Code that can wait for it, such as a request already running
asynchronously, awaits Deferred::wait instead.
Structs§
- Deferred
- One piece of code a program fetches on first use; see the module documentation.