Asynchronous Events

An asynchronous event can be created by using the addListenerQueued method instead of addListener.

The difference is that it queues the event to be processed later by another process/consumer.

You must have queue configured before using this feature, see bellow.