pure

    Type Alias SerialConstructor<TFn>

    Options for serial function

    type SerialConstructor<TFn> = {
        fn: (checkCancel: CheckCancelFn, current: SerialId) => TFn;
        onCancel?: SerialEventCancelCallback;
    }

    Type Parameters

    • TFn
    Index

    Properties

    Properties

    fn: (checkCancel: CheckCancelFn, current: SerialId) => TFn

    Function creator that returns the async function to be wrapped

    Optional callback to be called when the event is cancelled

    This is guaranteed to be only called at most once per execution

    MMNEPVFCICPMFPCPTTAAATR