@flowio/blaze-callbacks
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@flowio/blaze-callbacks

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

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @flowio/blaze-callbacks

Weekly Downloads

11

Version

0.0.7

License

none

Unpacked Size

100 kB

Total Files

11

Last publish

Collaborators

  • martapralat
  • sid.jain
  • gdxn96
  • flowtech
  • roryh
  • cbosatflow
  • garethgd