callSuspendingEvent
Calls an event with the given details. If there are multiple suspend event receivers, each receiver is executed concurrently. Allows to await the completion of suspending event listeners.
Return
Collection of awaitable jobs. This job list may be empty if no suspending listener was called. Each job instance represents an awaitable job for each method being called in each suspending listener. For awaiting use callSuspendingEvent(..).joinAll().
Parameters
Event details.
Plugin plugin.
Calls an event with the given details. Allows to await the completion of suspending event listeners.
Return
Collection of awaitable jobs. This job list may be empty if no suspending listener was called. Each job instance represents an awaitable job for each method being called in each suspending listener. For awaiting use callSuspendingEvent(..).joinAll().
Parameters
Event details.
Plugin plugin.
Allows to specify how suspend receivers are executed.