https://github.com/codewell/defer
Wait with function execution
https://github.com/codewell/defer
Last synced: 11 days ago
JSON representation
Wait with function execution
- Host: GitHub
- URL: https://github.com/codewell/defer
- Owner: codewell
- Created: 2020-10-18T10:21:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T11:39:49.000Z (over 5 years ago)
- Last Synced: 2023-03-02T23:06:06.703Z (over 3 years ago)
- Language: JavaScript
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @codewell/defer
## Installation
```
npm install @codewell/defer
```
## Basic Usage
```JavaScript
import defer from '@codewell/defer';
const waitWithLog = defer(console.log, "Hello, World!");
waitWithLog();
// => "Hello, World!"
```