Skip to content

FUZD / fuzd-scheduler / createScheduler

Function: createScheduler()

createScheduler<ChainProtocolTypes>(config): Scheduler<TransactionDataTypes<ChainProtocolTypes>> & SchedulerBackend

Create a scheduler instance for a specific TransactionData format The instance contains 2 method:

  • scheduleExecution: add the provided execution to a queue and send it to the executor for broadcast when times come
  • processQueue: check the current queue and send any scheduled execution for which the time has come, to the executor

Type Parameters

ChainProtocolTypes extends ChainProtocol<any>

Parameters

config: SchedulerConfig<ChainProtocolTypes>

Returns

Scheduler<TransactionDataTypes<ChainProtocolTypes>> & SchedulerBackend

Defined in

scheduler.ts:25