Skip to content

Interface: WaitingProcessOptions\<Args, Return>

Options for processes that are waiting to execute

Type parameters

Name Type
Args extends any[]
Return Return

Properties

after

Optional after: (result: Return) => void

Type declaration

▸ (result): void

Parameters
Name Type
result Return
Returns

void

Defined in

packages/connected-solid/src/util/RequestBatcher.ts:50


args

args: Args

The arguements supplied to the process

Defined in

packages/connected-solid/src/util/RequestBatcher.ts:29


modifyQueue

modifyQueue: (processQueue: WaitingProcess\<any[], any>[], currentlyProcessing: undefined | WaitingProcess\<any[], any>, args: Args) => undefined | WaitingProcess\<any[], any>

A custom function to modify the queue based on the current state of the queue

Type declaration

▸ (processQueue, currentlyProcessing, args): undefined | WaitingProcess\<any[], any>

Parameters
Name Type Description
processQueue WaitingProcess\<any[], any>[] The current process queue
currentlyProcessing undefined | WaitingProcess\<any[], any> The Process that is currently executing
args Args provided args
Returns

undefined | WaitingProcess\<any[], any>

Defined in

packages/connected-solid/src/util/RequestBatcher.ts:45


name

name: string

The name of the process like "read" or "delete"

Defined in

packages/connected-solid/src/util/RequestBatcher.ts:25


perform

perform: (...args: Args) => Promise\<Return>

A function that will be triggered when it's time to execute this process

Type declaration

▸ (...args): Promise\<Return>

Parameters
Name Type Description
...args Args arguments supplied to the process
Returns

Promise\<Return>

Defined in

packages/connected-solid/src/util/RequestBatcher.ts:35