MCPcopy Create free account
hub / github.com/CoderOpen/waimai / cancel

Method cancel

front/utils/luch-request/core/Request.js:129–136  ·  view source on GitHub ↗
(t = 'handle cancel', config = options)

Source from the content-addressed store, hash-verified

127 options.getTask = options.getTask || this.config.getTask
128 let next = true
129 const cancel = (t = 'handle cancel', config = options) => {
130 const err = {
131 errMsg: t,
132 config: config
133 }
134 reject(err)
135 next = false
136 }
137
138 const handleRe = {...this.requestBeforeFun(options, cancel)}
139 const _config = {...handleRe}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected