multicast-function
v1.1.0
Published
multicast-function write in typescript
Downloads
8
Maintainers
Readme
multicast-function
What is it
Multicast function
Where to use
Functions are the foundation of events, and events can have multiple subscribers, hence the need for multicast functions.
How to use
const multicastFunction = new MulticastFunction<() => void>();
const func = () => {
};
multicastFunction.add(func);
multicastFunction.invoke();
For more examples, please refer to the unit tests.