Query refactoring
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-03-10 18:37:45 +01:00
parent be8098fb7d
commit 94a0864132
3 changed files with 8 additions and 8 deletions

View File

@@ -4,9 +4,9 @@ import { type Cause, Effect, Fiber, identity, Option, Ref, type Scope, Stream, S
export interface QueryRunner<K extends readonly unknown[], A, E, R> {
readonly key: Stream.Stream<K>
readonly query: (key: K) => Effect.Effect<A, E, R>
readonly latestKeyRef: SubscriptionRef.SubscriptionRef<Option.Option<K>>
readonly stateRef: SubscriptionRef.SubscriptionRef<AsyncData.AsyncData<A, E>>
readonly fiberRef: SubscriptionRef.SubscriptionRef<Option.Option<Fiber.RuntimeFiber<void, Cause.NoSuchElementException>>>
@@ -128,9 +128,9 @@ export const make = <K extends readonly unknown[], A, E, R>(
)
return {
key,
query,
latestKeyRef,
stateRef,
fiberRef,