nl_tokens: Set up Integreat queue interface .
pl_tokens: function setupQueue ( queue ) { let dispatch = null let subscribed = false return { queue , /**
       * Set dispatch function to use for dequeuing
       */ setDispatch ( dispatchFn ) { dispatch = dispatchFn if ( ! subscribed && typeof dispatch === 'function' ) { queue . subscribe ( dispatch ) subscribed = true } } , /**
       * Middleware interface for Integreat. Will push queuable actions to queue,
       * and pass the rest on to the next() function.
       *
       * @param {function} next - The next middleware
       * @returns {Object} A response object
       */ middleware ( <mask> ) { return middleware ( next , queue ) } , /**
       * Schedule actions from the given defs.
       * Actions are enqueued with a timestamp, and are ran at the
       * set time.
       * @param {array} defs - An array of schedule definitions
       * @returns {array} Array of returned responses
       */ async schedule ( defs ) { return schedule ( defs , queue ) } } }