YeetCode
Guides

Scheduling Functions

Schedule functions to run after a delay.

Schedule a function to run after a specified delay using ctx.scheduler.runAfter().

What You'll Do

  • Schedule a mutation or action to run after a delay
  • Pass arguments to the scheduled function
  • Understand the difference between crons (recurring) and scheduled functions (one-off)
  • Common patterns: delayed notifications, retry logic, deferred processing

On this page