MCPcopy
hub / github.com/didi/mpx / addWorkQueue

Method addWorkQueue

packages/fetch/src/queue.js:54–66  ·  view source on GitHub ↗
(work)

Source from the content-addressed store, hash-verified

52 }
53
54 addWorkQueue (work) {
55 switch (work.priority) {
56 case 'normal':
57 this.workList.push(work)
58 break
59 case 'low':
60 this.lowWorkList.push(work)
61 break
62 default:
63 this.workList.push(work)
64 break
65 }
66 }
67
68 delWorkQueue (work) {
69 const index = this.workingList.indexOf(work)

Callers 1

requestMethod · 0.95

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected