#
Interface: Scheduler#
Properties#
errors• errors: object
#
Type declaration:Name | Type |
---|---|
map | Map<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:Name | Type |
---|---|
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:Name | Type |
---|---|
selections | Selection | Set<Selection> |
Returns: void | ResolvedLazyPromise
Defined in: packages/gqless/src/Scheduler/index.ts:62