Skip to content

a1motion/defer

Repository files navigation

defer

Remotely resolve/reject a promise

Install

yarn add @a1motion/defer

Usage

import defer from "@a1motion/defer";

const promise = defer();
promise.then(() => {
  // do things after
});

// somewhere else
promise.resolve();

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •