Another week and another new Convex release for you all! Here are our newest features:
Full details below.
Convex now allows you to schedule functions to run in the future. This allows you to build powerful workflows without the need to set up and maintain queues or other infrastructure.
You can schedule functions within mutations and actions using the scheduler. runAfter schedules a function to run after a delay (measured in milliseconds). runAt schedules a function to run at a Date or unix timestamp
Here’s an example of a function that receives an array of messages as argument and inserts them in the database with one-second delay between each message: