execute


Description:

public R execute<R> (Callback<T,R> func, int priority = DEFAULT, Cancellable? cancellable = null) throws Error

Execute the callback and wait for the result

This method will block until the event is triggered, then execute the callback and return the result

Parameters:

func

the callback to execute once the event is triggered

priority

the priority of the callback

cancellable

optional cancellable for aborting