docs: InvocationCallback queuePoll() {
        InvocationCallback element;
        synchronized (this) {
           if (tail != head) {
              element = elements[head & mask];
              head++;
           } else {
              element = null;
              frozen = true;
           }
        }
        return element;
     }