nl_tokens: run a queue one by one . If include function reject or return false it will stop
pl_tokens: function runRejectableQueue ( queue ) { for ( var _len = arguments . length , args = Array ( _len > 1 ? _len - 1 : 0 ) , _key = 1 ; _key < _len ; _key ++ ) { args [ _key - 1 ] = arguments [ _key ] ; } return new _Promise ( function ( resolve , reject ) { var step = function step ( index ) { if ( <mask> >= queue . length ) { resolve ( ) ; return ; } var result = isFunction ( queue [ index ] ) ? queue [ index ] . apply ( queue , _toConsumableArray ( args ) ) : queue [ index ] ; if ( result === false ) return reject ( 'stop' ) ; return _Promise . resolve ( result ) . then ( function ( ) { return step ( index + 1 ) ; } ) . catch ( function ( err ) { return reject ( err || 'stop' ) ; } ) ; } ; step ( 0 ) ; } ) ; }