1.1.0 • Published 2 years ago

multicast-function v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago