multicast-function
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

/multicast-function/

    Package Sidebar

    Install

    npm i multicast-function

    Weekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    37.1 kB

    Total Files

    14

    Last publish

    Collaborators

    • ryuu-64