open-index/open-npm huggingface dataset:
npm package: @flowio/blaze-callbacks
Description: A multi-purpose callbacks list object that provides a way to manage callbacks.
Latest version: 0.0.7

# @flowio/blaze-callbacks

A multi-purpose callbacks list object that provides a way to manage callbacks.

```ts
import Callbacks from '@flowio/blaze-callbacks';

type AnyCallback = (...args: any[]) => any;

const callbacks = new Callbacks<AnyCallback>();
const id = callbacks.add(() => {});

callbacks.invoke(id, 1, 2, 3);
callbacks.remove(id);
```