Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
New easy way to start lightweight threads
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Rextester { public class Program { public static void Main(string[] args) { Task.Run(() => { for(int i=0; i<10; i++) { Console.WriteLine("test"); } }).Wait(); Console.WriteLine("Hello, world!"); Console.WriteLine(); //same without wait Task.Run(() => { for(int i=0; i<10; i++) { Console.WriteLine("test"); } }); Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Delegate In C#
Generic Coveriant
Testing 11
Get days from two dates
Chandramouli
Games
Doubt-" 1 parameter Gen _Derive_Class inherit the 2 parameter Gen_Base_Class"
test array with c#
xddd
s
Please log in to post a comment.