Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axilleasiv/async-run-ended
https://github.com/axilleasiv/async-run-ended
async node-js nodejs
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/axilleasiv/async-run-ended
- Owner: axilleasiv
- Created: 2019-07-25T23:01:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T14:01:05.000Z (almost 5 years ago)
- Last Synced: 2024-09-23T03:51:42.399Z (about 2 months ago)
- Topics: async, node-js, nodejs
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Check if your node.js program has finished the async code execution (async functions, promises, setTimeout etc), when Inter Process Communication (IPC) in Node.js keeps the connection between child and parent process, alive. It is not recommended to be used for production.
## Installation
```
npm install @achil/async-run-ended
```or
```
yarn add @achil/async-run-ended
```## Usage
Require the node module at the top of your code
```js
const asyncEnd = require('@achil/async-run-ended');
```and check at the end of your file or at a specific point of you code by using the module function check and a time interval as argument of it, for example at the following example, it checks every 50ms :
```js
asyncEnd.check(50).then(function() {
// Run your code at the end of the async code
});
```