Skip to main content

Interface: Scheduler#

Properties#

errors#

• errors: object

Type declaration:#

NameType
mapMap<Selection, gqlessError>
removeErrors(selectionsCleaned: Selection[]) => void
retryPromise(retryPromise: Promise<SchedulerPromiseValue>, selections: Set<Selection>) => void
subscribeErrors(fn: ErrorSubscriptionFn) => () => void
triggerError(newError: gqlessError, selections: Selection[], isLastTry: boolean) => void

Defined in: packages/gqless/src/Scheduler/index.ts:42


isFetching#

• isFetching: boolean

Defined in: packages/gqless/src/Scheduler/index.ts:56


pendingSelectionsGroups#

• pendingSelectionsGroups: Set<Set<Selection>>

Defined in: packages/gqless/src/Scheduler/index.ts:57


pendingSelectionsGroupsPromises#

• pendingSelectionsGroupsPromises: Map<Set<Selection>, Promise<SchedulerPromiseValue>>

Defined in: packages/gqless/src/Scheduler/index.ts:58


resolving#

• resolving: null | DeferredPromise<SchedulerPromiseValue>

Defined in: packages/gqless/src/Scheduler/index.ts:38


subscribeResolve#

• subscribeResolve: (fn: (promise: Promise<SchedulerPromiseValue>, selection: Selection) => void) => () => void

Type declaration:#

â–¸ (fn: (promise: Promise<SchedulerPromiseValue>, selection: Selection) => void): function

Parameters:#

NameType
fn(promise: Promise<SchedulerPromiseValue>, selection: Selection) => void

Returns: () => void

Defined in: packages/gqless/src/Scheduler/index.ts:39

Defined in: packages/gqless/src/Scheduler/index.ts:39

Methods#

getResolvingPromise#

â–¸ getResolvingPromise(selections: Selection | Set<Selection>): void | ResolvedLazyPromise

Parameters:#

NameType
selectionsSelection | Set<Selection>

Returns: void | ResolvedLazyPromise

Defined in: packages/gqless/src/Scheduler/index.ts:62

Last updated on by Pablo Sáez