Run Code
|
API
|
Code Wall
|
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
matrix function
7.2 Creating async methods the old way
4.3 Static typing: benefits, drawbacks and ways to minimise them
Капча
pattern2
test
MockTest
Shifting Elements Forward in a List, and Random Numbers Generation
a.i. neural framework / J.A.R.V.I.S. / Just A Rather Very Intelligent System
asxsdf