code: function addJobAtHeadOfPriority(node, priority) {
          var marker = markerFromPriority(priority);
          if (marker.priority > highWaterMark) {
              highWaterMark = marker.priority;
              immediateYield = true;
          }
          marker._insertJobAfter(node);
      }
docs: Mechanism for the scheduler