@trenskow/async-event-emitter v0.1.47
async-event-emitter
A small library for asynchronous event emitters.
Usage
Below is an example on how to use.
import EventEmitter from '@trenskow/async-event-emitter';
const emitter = new EventEmitter();
emmiter.on('greeting', async (text) => {
console.info(text);
});
await emitter.emit('greeting', 'Hello, World!');
In the above example Hello, World!
will be output to the console.
License
See license in LICENSE
3 days ago
3 days ago
3 days ago
14 days ago
14 days ago
14 days ago
14 days ago
14 days ago
14 days ago
14 days ago
14 days ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
4 months ago
4 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago