Options of the detachInactive plugin.

interface DetachInactiveOptions {
    delayAfterDeactivation?: number;
    delayBeforeActivation?: number;
}

Properties

delayAfterDeactivation?: number

The delay in milliseconds after which the executor is detached after being deactivated. If executor is activated during this timeout, then detach is prevented.

By default, executor isn't detached if it was deactivated.

delayBeforeActivation?: number

The delay in milliseconds after which the executor is detached if it wasn't activated after being attached.

Use this if you create an executor prematurely and not sure whether is will be used or not.

By default, executor isn't detached if it wasn't activated.