This will enable CapTP and other such to only request to know the actual resulution/rejection of an eventual promise iff there is local code that wants to know. See this ocapn issue for more.
Feel free to suggest another name for it.
(ps. Similiar trap for E.there(promise, whatever) would be onThere: (target, whatever) => { return new Promise.delegate(...); } but that is for later date)
The proposed trap to add to the two eventual trap handlers:
This will enable CapTP and other such to only request to know the actual resulution/rejection of an eventual promise iff there is local code that wants to know. See this ocapn issue for more.
Feel free to suggest another name for it.
(ps. Similiar trap for
E.there(promise, whatever)
would beonThere: (target, whatever) => { return new Promise.delegate(...); }
but that is for later date)