Function AbortableEffectFactory
- AbortableEffectFactory(parent?): {
effect: {
abortable: (<T>(callback) => Abortable<T>);
};
removeEffect?: (() => void);
}
-
Returns {
effect: {
abortable: (<T>(callback) => Abortable<T>);
};
removeEffect?: (() => void);
}
-
effect: {
abortable: (<T>(callback) => Abortable<T>);
}
-
abortable: (<T>(callback) => Abortable<T>)
-
- <T>(callback): Abortable<T>
-
Parameters
-
callback: ((resolve, reject, abortController) => void)
-
- (resolve, reject, abortController): void
-
Parameters
-
resolve: ((value) => void)
-
- (value): void
-
Returns void
-
reject: ((error) => void)
-
- (error): void
-
Returns void
-
abortController: AbortController
Returns void
-
Optional
removeEffect?: (() => void)