You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Transponder is a simple mechanism to convert signals to Promises by resolving the Promise with the AppCon used by first handler of the wrapped network. Promises are only rejected if the specified timeout passed to the constructor is reached.
There may be scenarios where Network configurations want more control and to use individual handlers to determine how to conclude a Promise through a return value for resolving or throwing errors to reject.
The text was updated successfully, but these errors were encountered:
…version of signals
affects: @tao.js/utils
using a Transceiver you can control how a Promise behaves using handlers attached to the
Transceiver.
The API works as follows:
* any handler THROW will REJECT the Promise
* any AppCtx returned from a handler will CHAIN back into the wrapped Network
* a TRUTHY value returned from an Intercept handler will REJECT the Promise
* any value not null or undefined returned from an Async or Inline handler will RESOLVE the Promise
* only the first thing to happen will conclude the Promise
ISSUES CLOSED: #22, #24
A
Transponder
is a simple mechanism to convert signals to Promises by resolving the Promise with the AppCon used by first handler of the wrapped network. Promises are only rejected if the specified timeout passed to the constructor is reached.There may be scenarios where
Network
configurations want more control and to use individual handlers to determine how to conclude a Promise through a return value for resolving or throwing errors to reject.The text was updated successfully, but these errors were encountered: