Constraints to be applied on scheduler

Since 2.2.0

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

Properties

Properties

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

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

Since 1.21.0