DarException if cancellation is not available or fails.cancelThread
fn
void cancelThread(ulong tid, bool immediate = true, ulong flag = 0) @safeRequest cancellation of a libdar operation in the specified thread.
The operation will abort at the next checkpoint, throwing an exception that properly cleans up resources. This does not terminate the thread itself, but causes the libdar call to return control to the caller.
Parameters
tid | the thread ID (as returned by getThreadId()) |
immediate | if true, cancel as fast as possible; if false, try to make archive usable |
flag | user-defined value passed to the cancellation exception (default: 0) |