executeSync

Enqueues the cmd, blocking the current thread until completion or cancellation/error.

NOTE: This is a blocking call and should be invoked from a background thread.

Parameters

cancellation

optional callback which is invoked after every thread sleep (so, multiple times) in order to trigger job cancellation if a non-null exception value is returned.

See also

Throws

when underlying OnFailure callback is invoked.


Enqueues the cmd, blocking the current thread until completion or cancellation/error.

NOTE: This is a blocking call and should be invoked from a background thread.

Parameters

cancellation

optional callback which is invoked after every thread sleep (so, multiple times) in order to trigger job cancellation if a non-null exception value is returned.

See also

Throws

when underlying OnFailure callback is invoked.