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

Method run

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

Source from the content-addressed store, hash-verified

103 }
104
105 run (work) {
106 this.adapter(work.request).then((res) => {
107 work.promise.resolve(res)
108 this.requestComplete(work)
109 }, (err) => {
110 work.promise.reject(err)
111 this.requestComplete(work)
112 })
113 }
114}

Callers 1

workingRequestMethod · 0.95

Calls 2

requestCompleteMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected