0.1.21 • Published 2 months ago
@trenskow/async-event-emitter v0.1.21
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
0.1.20
2 months ago
0.1.21
2 months ago
0.1.18
3 months ago
0.1.19
3 months ago
0.1.14
4 months ago
0.1.15
4 months ago
0.1.16
4 months ago
0.1.17
4 months ago
0.1.10
8 months ago
0.1.11
7 months ago
0.1.12
7 months ago
0.1.13
7 months ago
0.1.8
9 months ago
0.1.7
10 months ago
0.1.9
8 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago