MCPcopy
hub / github.com/vercel/next.js / bump

Method bump

packages/next/src/client/components/promise-queue.ts:51–59  ·  view source on GitHub ↗
(promiseFn: Promise<any>)

Source from the content-addressed store, hash-verified

49 }
50
51 bump(promiseFn: Promise<any>) {
52 const index = this.#queue.findIndex((item) => item.promiseFn === promiseFn)
53
54 if (index > -1) {
55 const bumpedItem = this.#queue.splice(index, 1)[0]
56 this.#queue.unshift(bumpedItem)
57 this.#processNext(true)
58 }
59 }
60
61 #processNext(forced = false) {
62 if (

Callers 1

Calls 3

#processNextMethod · 0.95
spliceMethod · 0.45
unshiftMethod · 0.45

Tested by

no test coverage detected