MCPcopy Create free account
hub / github.com/Effect-TS/effect / StreamService

Function StreamService

packages/effect/src/ui/Query.ts:1460–1480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1458 Success,
1459 Error
1460> = (): any =>
1461(
1462 name: string,
1463 options: {
1464 readonly args?: Schema.Top | Schema.Struct.Fields | undefined
1465 readonly success: Schema.Top
1466 readonly error?: Schema.Top | undefined
1467 readonly idleTimeToLive?: Duration.Input | undefined
1468 readonly tags?: ReadonlyArray<Tag> | undefined
1469 readonly persist?: boolean | undefined
1470 readonly reactivityKeys?: ((args: any) => Reactivity.KeysInput) | undefined
1471 readonly server?: boolean | undefined
1472 }
1473): any =>
1474 queryClass(makeDef(
1475 name,
1476 // Override fetch-only options that may still be present in an options variable.
1477 { ...options, staleTime: 0, refetchInterval: undefined },
1478 undefined,
1479 liveOps
1480 ))
1481
1482/**
1483 * Marks the running stream query's entry as reconnecting. Watchers keep the

Callers

nothing calls this directly

Calls 2

queryClassFunction · 0.85
makeDefFunction · 0.85

Tested by

no test coverage detected