A timeout that can be set to a delay longer than the maximum timeout delay supported by a regular setTimeout.
setTimeout
For example,
import {LongTimeout} from "lifecycle-utils";const month = 1000 * 60 * 60 * 24 * 7 * 30;const timeout = new LongTimeout(() => { console.log("timeout");}, month);// to clear the timeout, call dispose// timeout.dispose(); Copy
import {LongTimeout} from "lifecycle-utils";const month = 1000 * 60 * 60 * 24 * 7 * 30;const timeout = new LongTimeout(() => { console.log("timeout");}, month);// to clear the timeout, call dispose// timeout.dispose();
A timeout that can be set to a delay longer than the maximum timeout delay supported by a regular
setTimeout
.For example,