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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.01
1.0.11

Package Sidebar

Install

npm i multicast-function

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

37.1 kB

Total Files

14

Last publish

Collaborators

  • ryuu-64