Class TaskBase.Awaitable
- Namespace
- HomaGames.HomaBelly
- Assembly
- HomaGames.HomaBelly.Core.dll
public class TaskBase.Awaitable : INotifyCompletion
- Inheritance
-
TaskBase.Awaitable
- Implements
- Derived
- Inherited Members
Constructors
Awaitable(TaskBase, bool)
public Awaitable(TaskBase parent, bool captureContext)
Parameters
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
public void GetResult()
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
public void OnCompleted(Action continuation)
Parameters
continuationActionThe action to invoke when the operation completes.
Exceptions
- ArgumentNullException
The
continuationargument is null (Nothing in Visual Basic).