[][src]Module moxie::load

Asynchronous loading primitives.

Functions

load

Load a value from a future, cloning it on subsequent revisions after it is first returned. Re-initializes the loading future if the capture argument changes from previous revisions.

load_once

Calls load_with, never re-initializes the loading future, and clones the returned value on each revision once the future has completed and returned.

load_once_with

Calls load_with but never re-initializes the loading future.

load_with

Load a value from the future returned by init whenever capture changes, returning the result of calling with with the loaded value. Cancels the running future after any revision during which this call was not made.