• Parameters

    Returns {
        effect: {
            abortable: (<T>(callback) => Abortable<T>);
        };
        removeEffect?: (() => void);
    }

    • effect: {
          abortable: (<T>(callback) => Abortable<T>);
      }
      • abortable: (<T>(callback) => Abortable<T>)
          • <T>(callback): Abortable<T>
          • Type Parameters

            • T = void

            Parameters

            • callback: ((resolve, reject, abortController) => void)
                • (resolve, reject, abortController): void
                • Parameters

                  • resolve: ((value) => void)
                      • (value): void
                      • Parameters

                        • value: T

                        Returns void

                  • reject: ((error) => void)
                      • (error): void
                      • Parameters

                        • error: Error

                        Returns void

                  • abortController: AbortController

                  Returns void

            Returns Abortable<T>

    • Optional removeEffect?: (() => void)
        • (): void
        • Returns void

Generated using TypeDoc