by
0
6
3,418
1
Top 1% !
Popular
Famous
Easy-to-find
Refined
OpenSource
Popularity: 3696th place

Published on:

.NETFramework2.0
Architecturex86_64
Extension.cs
LanguageCSharp
LicenseMIT_X11
OSWindows

How to create an asynchronous task in C#

This is a simple way to create a task that will run asynchronously with respect to the current thread
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/228782/How-to-create-an-asynchronous-task-in-C-?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
System.Threading.Tasks.Task.Factory.StartNew(() => { log.Info("This will run async"); });
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus