postWithCallback

public final static T postWithCallback<T extends Event>(T event, Function1<T, Unit> callback, Long delay, EventProcessingType processingType)

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.

processingType

The type of processing (Sync, Async, HandlerAsync).