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

    Keywords

    none

    Install

    npm i @flowio/blaze-callbacks

    DownloadsWeekly Downloads

    118

    Version

    0.0.7

    License

    none

    Unpacked Size

    100 kB

    Total Files

    11

    Last publish

    Collaborators

    • flow-david
    • chicksflow
    • ctumolosus
    • flowtech
    • mpalma
    • roryh
    • cbosatflow
    • x_umang
    • garethgd
    • vhong