Interface: RefCountedAsyncSubscriptionOptions
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:26
Options for createRefCountedAsyncSubscription.
Propertiesโ
onCleanupError?โ
readonlyoptionalonCleanupError?: (error:Error) =>void
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:30
Optional error handler invoked if the cleanup handler throws.
Parametersโ
errorโ
Returnsโ
void
onReady?โ
readonlyoptionalonReady?: () =>void
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:36
Optional diagnostic hook called when the underlying subscription is ready.
Returnsโ
void
onSetupError?โ
readonlyoptionalonSetupError?: (error:Error) =>void
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:41
Optional error handler invoked if subscription setup fails.
Parametersโ
errorโ
Returnsโ
void
onStarted?โ
readonlyoptionalonStarted?: () =>void
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:46
Optional diagnostic hook called when the first subscriber triggers setup.
Returnsโ
void
startโ
readonlystart: () =>Promise<() =>void>
Defined in: src/stores/utils/refCountedAsyncSubscription.ts:53
Starts the underlying subscription.
Returnsโ
Promise<() => void>
A cleanup function.