MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / remove

Function remove

packages/core/src/utils/promisebuffer.ts:31–33  ·  view source on GitHub ↗

* Remove a promise from the queue. * * @param task Can be any PromiseLike * @returns Removed promise.

(task: PromiseLike<T>)

Source from the content-addressed store, hash-verified

29 * @returns Removed promise.
30 */
31 function remove(task: PromiseLike<T>): void {
32 buffer.delete(task);
33 }
34
35 /**
36 * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.

Callers 1

addFunction · 0.70

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected