Skip to content

Ryuu-64/multicast-function

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published