@defer.run/client
Advanced tools
Changelog
0.4.0
#24 ca35544
Thanks @charlypoly! - Introduce a new API to delay an execution:
import { delay } from "@defer/client";
import { helloWorld } from "../defer/helloWorld";
// create a delayed execution
const delayedHelloWorld = delay(helloWorld, "1h");
delayedHelloWorld(); // background execution in 1 hour