AsyncTaskBase Class
Represents a cancellable and completable asynchronous task that can be used even in frameworks that do not support
the and keywords.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public abstract class AsyncTaskBase : IDisposable
Public MustInherit Class AsyncTaskBase
Implements IDisposable
public ref class AsyncTaskBase abstract : IDisposable
[<AbstractClassAttribute>]
type AsyncTaskBase =
class
interface IDisposable
end
- Inheritance
- Object AsyncTaskBase
- Implements
- IDisposable
| AsyncTaskBase | Initializes a new instance of the AsyncTaskBase class |
| IsCanceled |
Gets whether the task has been canceled.
|
| IsCompleted |
Gets whether the task has been completed.
|
| IsDisposed |
Gets whether the task has been disposed.
|
| Cancel |
Cancels the task, setting the IsCanceled property to .
|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Dispose(Boolean) |
Disposes the resources used by the AsyncTaskBase instance.
|
| SetCompleted |
Sets the task as completed, allowing any waiting threads to proceed.
|
| Wait |
Waits for the task to complete, with a specified timeout. This method blocks
the calling thread until the task is completed or the specified timeout has elapsed, whichever comes first.
|
| WaitForCompletion |
Waits for the task to complete. This method blocks the calling thread until the task is completed.
|