MCPcopy Index your code
hub / github.com/nodejs/node / yield

Method yield

lib/timers/promises.js:210–214  ·  view source on GitHub ↗

* @returns {Promise }

()

Source from the content-addressed store, hash-verified

208 * @returns {Promise<void>}
209 */
210 yield() {
211 if (!this[kScheduler])
212 throw new ERR_INVALID_THIS('Scheduler');
213 return setImmediate();
214 }
215
216 /**
217 * @typedef {import('../internal/abort_controller').AbortSignal} AbortSignal

Callers 3

testYieldFunction · 0.80
open_nokFunction · 0.80
open_closeFunction · 0.80

Calls 1

setImmediateFunction · 0.70

Tested by

no test coverage detected