IO
io.waitForEvent()
io.waitForEvent()
waits for the next event to be emitted, and returns the event data
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Parameters
Should be a stable and unique cache key inside the run()
. See
resumability for more information.
Specify the options for the event to wait for.
Specify the options for the event to wait for.
Returns
The ID of the event that was emitted.
The name of the event that was emitted.
The payload of the event that was emitted.
The context of the event that was emitted.
The timestamp of the event that was emitted.
The account ID of the event that was emitted.