post With Callback
fun <T : Event> postWithCallback(event: T, callback: (T) -> Unit, delay: Long?, processingType: EventProcessingType): T
Posts an event to be handled asynchronously, with a callback executed upon completion.
Return
The event after processing.
Parameters
T
The type of the event.
event
The event to post.
callback
The callback to execute upon completion.
delay
Optional delay before executing the callback.
processing Type
The type of processing (Sync, Async, HandlerAsync).