ThreadWorker CleanupDueToAbort Method CleanCode C# Libraries v1.2.03 API
Tells the ThreadManager that this background task is complete due to a user-initiated abort.

Namespace: CleanCode.Threading
Assembly: CleanCode (in CleanCode.dll) Version: (1.2.03)

public void CleanupDueToAbort()

Typically Cleanup  should be called in the normal processing loop while CleanupDueToAbort should be used in a specific check for a user-initiated abort, as in:
if (threadManager.AbortRequested) { CleanupDueToAbort(); return true; }
See Also