@defer.run/client
Advanced tools
Changelog
0.3.0
#20 99ed4df
Thanks @charlypoly! - Introduce defer.schedule(fn, frequencyStr)
Defer now support scheduled functions (CRON), as follows:
import { defer } from "@defer/client";
async function myDeferWorkflow() {
const users = await prisma.user.find({
where: {
// ...
},
});
// do something...
}
export default defer.cron(myDeferWorkflow, "every day at 10am");
Notes