When would <event>.queued be fired?

From this article,


there are 3 events that can be fired when running GET


I understand the Pre-Process and Post-Process. But I can’t figure out when and how .queued is fired.

Can someone help and explain this?

Thanks a lot!

Starting with release 2.3.0, queued scripts, on the other hand, do not and cannot affect the processing of the original API call. Both the request and response of the event are saved along with the script and queued for later execution. Queued scripts are primarily useful for triggering other workflows that need to be done when an event happens, but not necessarily during the processing of the event.

As mentioned in the article you referred, the .queued event can be triggered in the same way as post and pre-process events.