Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Create Async method

// simple method structure
public static  Task<int> FooAsync(int num)
{
   num+=5;
   return Task.FromResult(num);
}
// calling function structure
public static async void Solve()
{
    var temp = await FooAsync(i);
}
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #Create #Async #method
ADD COMMENT
Topic
Name
3+7 =