What is the accepted pattern for naming methods that return Tasks?

Posted by Karg on Stack Overflow See other posts from Stack Overflow or by Karg
Published on 2010-06-02T22:03:08Z Indexed on 2010/06/02 22:14 UTC
Read the original article Hit count: 166

Filed under:
|
|

APM uses BeginXXX/EndXX pairs and the Event-based Asynchronous Pattern (EAP) uses XXXAsync and XXXCompleted pairs, but I haven't seen anything standard on how to name methods that return a task.

I have been using XXXTask:

Data GetData() 
Task<Data> GetDataTask()

but was wondering if a more standard approach has developed

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET