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