MCPcopy Create free account
hub / github.com/angular/dev-infra / shift

Method shift

github-actions/browserstack/set-browserstack-env.js:8341–8348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8339 return nextItem;
8340 }
8341 };
8342 module.exports = class FixedQueue {
8343 constructor() {
8344 this.head = this.tail = new FixedCircularBuffer();
8345 }
8346 isEmpty() {
8347 return this.head.isEmpty();
8348 }
8349 push(data) {
8350 if (this.head.isFull()) {
8351 this.head = this.head.next = new FixedCircularBuffer();

Callers

nothing calls this directly

Calls 2

shiftMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected