MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / cleanup

Function cleanup

js/botasaurus-js/src/task.ts:324–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322
323
324 const cleanup = () => {
325 state.promises = []
326 state.draining = false
327 seenItems.clear()
328 lastPromise = Promise.resolve()
329 }
330
331 return {
332 put: function (data: any, overrideOptions: Omit<TaskOptions<any>, 'run'> = {}) {

Callers 2

drainQueueFunction · 0.70
releaseTaskMethod · 0.50

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected