nl_tokens: Resolves the provided promise to the specified state and result value . This function has no effect if the provided promise has already been resolved .
pl_tokens: function resolve ( instance , newState , <mask> ) { if ( instance [ FIELDS . state ] !== STATE . PENDING ) { return } instance [ FIELDS . state ] = newState instance [ FIELDS . value ] = value let listeners if ( newState === STATE . RESOLVED ) { listeners = instance [ FIELDS . fulfillListeners ] } else { listeners = instance [ FIELDS . errorListeners ] } for ( let listener of listeners ) { listener ( ) } }