README
waitForTimeout
waitForTimeout helper function
install
npm install wait-for-timeout
or
yarn add wait-for-timeout
Usage
import { waitForTimeout } from "wait-for-timeout";
waitForTimeout<string>(() => {
return "Hello, world!";
}, 500).then((response) => {
console.log({ response }); // "Hello, world!"
});
TODO
- Implement husky
- Implement prettier & eslint
- Implement github actions
- Update documentation