Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkershner6/await-wait
Very simple wait function for async Javascript/TypeScript Promises. Surprisingly, nothing similar existed at time of writing.
https://github.com/dkershner6/await-wait
hacktoberfest nodejs npm-package
Last synced: 18 days ago
JSON representation
Very simple wait function for async Javascript/TypeScript Promises. Surprisingly, nothing similar existed at time of writing.
- Host: GitHub
- URL: https://github.com/dkershner6/await-wait
- Owner: dkershner6
- License: apache-2.0
- Created: 2020-07-12T18:08:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T00:25:53.000Z (5 months ago)
- Last Synced: 2024-10-24T02:08:31.641Z (26 days ago)
- Topics: hacktoberfest, nodejs, npm-package
- Language: TypeScript
- Homepage:
- Size: 502 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# await-wait
Easily asynchronously wait for a specified time.
## Docs
[API Docs](https://dkershner6.github.io/use-set-as-state/)
## Installation
```
npm i await-wait
```## Usage
```typescript
import { wait } from 'await-wait';await wait(1000);
// One second has passed
await doAction();
```## Contributing
All contributions are welcome, please open an issue or pull request.
To use this repository:
1. `npm i -g pnpm` (if don't have pnpm installed)
2. `pnpm i`
3. `npx projen` (this will ensure everything is setup correctly, and you can run this command at any time)
4. Good to make your changes!