Difference between method call in normal C# and Orleans
I am running Orleans in localHost Clustering mode and currently have 1 grain and a client. // client code for (int i = 0; i <num_scan; ++i) { Console.WriteLine("client " + i); // the below call should have returned when first await is hit in foo() // but it doesn't work like that grain.foo(i); } // grain code async Task foo(int i) { Console.WriteLine("grain "+i); await Task.Delay(2000); } The output of this was as below: client 0 client 1 client 2 client 3 client 4 client 5 client 6 grain 0 client 7 client 8 client 9 client 10 grain 8 grain 7 . . In normal C# , the async function returns only