Documentation ¶
Overview ¶
Package deferred has machinery for providing JavaScript with deferred values. These arise because we want to have library functions for JavaScript to request things that will only later be supplied -- either because it will take some time to get, and it's better if JavaScript doesn't have to block (e.g., an HTTP request), or because we're waiting for something elsewhere to happen (e.g., watching a resource for changes).
In JavaScript, deferred values will often end up being represented by promises; but the protocol allows other representations, and in particular, some requests may result in an sequence of values rather than just a single value. The protocol also allows for cancelling a deferred value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.