Function TimeoutEffectFactory
- TimeoutEffectFactory(parent?): {
effect: {
timeout: ((signal, durationMs) => Abortable<void>);
};
removeEffect?: (() => void);
}
-
Returns {
effect: {
timeout: ((signal, durationMs) => Abortable<void>);
};
removeEffect?: (() => void);
}
-
effect: {
timeout: ((signal, durationMs) => Abortable<void>);
}
-
timeout: ((signal, durationMs) => Abortable<void>)
-
- (signal, durationMs): Abortable<void>
-
Parameters
-
signal: AbortSignal
-
durationMs: number
-
Optional
removeEffect?: (() => void)