Created
August 1, 2016 10:10
-
-
Save zzandy/bca066196af7b3f51235280b3b286d36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program { | |
private static string result; | |
static void Main() { | |
SaySomething(); | |
Console.WriteLine(result); | |
} | |
static async Task<string> SaySomething() { | |
await Task.Delay(5); | |
result = "Hello world!"; | |
return “Something”; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment