execute Sync
fun <Success : Any> TorCmd.Privileged.Processor.executeSync(cmd: TorCmd.Privileged<Success>, cancellation: () -> CancellationException?? = null): Success
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
fun <Success : Any> TorCmd.Unprivileged.Processor.executeSync(cmd: TorCmd.Unprivileged<Success>, cancellation: () -> CancellationException?? = null): Success
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.