MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / createThenable

Function createThenable

src/index.spec.js:3825–3838  ·  view source on GitHub ↗

* createThenable creates a Promise that can be controlled from outside its inner scope

()

Source from the content-addressed store, hash-verified

3823 * createThenable creates a Promise that can be controlled from outside its inner scope
3824 */
3825function createThenable() {
3826 let done, cancel;
3827
3828 const promise = new Promise((resolve, reject) => {
3829 done = resolve;
3830 cancel = reject;
3831 });
3832
3833 return {
3834 promise,
3835 done,
3836 cancel,
3837 };
3838}

Callers 1

index.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…