Task.CompletedTask
Task.CompletedTask
Task.CompletedTask
Task.CompletedTask
Property
Definition
Gets a task that has already completed successfully.
public:
static property System::Threading::Tasks::Task ^ CompletedTask { System::Threading::Tasks::Task ^ get(); };
public static System.Threading.Tasks.Task CompletedTask { get; }
member this.CompletedTask : System.Threading.Tasks.Task
Public Shared ReadOnly Property CompletedTask As Task
Property Value
Remarks
This property returns a task whose Status property is set to RanToCompletion. To create task that returns a value and runs to completion, call the FromResult method.
Repeated attempts to retrieve this property value may not always return the same instance.
Applies to
See also
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...