Constraints to be applied on scheduler

Remarks

Since 2.2.0

interface SchedulerConstraints {
    act: ((f) => Promise<unknown>);
}

Properties

Properties

act: ((f) => Promise<unknown>)

Ensure that all scheduled tasks will be executed in the right context (for instance it can be the act of React)

Type declaration

    • (f): Promise<unknown>
    • Parameters

      • f: (() => Promise<void>)
          • (): Promise<void>
          • Returns Promise<void>

      Returns Promise<unknown>

Remarks

Since 1.21.0