cancelThread

fnvoid cancelThread(ulong tid, bool immediate = true, ulong flag = 0) @safe

Request 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

tidthe thread ID (as returned by getThreadId())
immediateif true, cancel as fast as possible; if false, try to make archive usable
flaguser-defined value passed to the cancellation exception (default: 0)

Throws

DarException if cancellation is not available or fails.