MCPcopy Index your code
hub / github.com/strongloop/loopback / waitForEvent

Function waitForEvent

test/helpers/wait-for-event.js:10–14  ·  view source on GitHub ↗
(emitter, event)

Source from the content-addressed store, hash-verified

8const Promise = require('bluebird');
9
10function waitForEvent(emitter, event) {
11 return new Promise((resolve, reject) => {
12 emitter.on(event, resolve);
13 });
14}
15
16module.exports = waitForEvent;
17

Callers 3

givenResetPasswordTokenFunction · 0.50
triggerPasswordResetFunction · 0.50
triggerPasswordResetFunction · 0.50

Calls

no outgoing calls

Tested by 2

givenResetPasswordTokenFunction · 0.40
triggerPasswordResetFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…