MCPcopy Create free account
hub / github.com/ckeditor/ckeditor5-react / createDefer

Function createDefer

tests/_utils/defer.js:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 */
5
6export function createDefer() {
7 const deferred = {
8 resolve: ( ) => {},
9 promise: Promise.resolve( null )
10 };
11
12 deferred.promise = new Promise( resolve => {
13 deferred.resolve = resolve;
14 } );
15
16 return deferred;
17}

Callers 6

testSemaphoreForWatchdogFunction · 0.90
createMethod · 0.90
testSemaphoreForWatchdogFunction · 0.90
_lockMethod · 0.85

Calls

no outgoing calls

Tested by 2

testSemaphoreForWatchdogFunction · 0.72
testSemaphoreForWatchdogFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…