Skip to content

Instantly share code, notes, and snippets.

@mantzas
Created May 26, 2016 19:40
Show Gist options
  • Save mantzas/26c7e9c61316579b69f935f2c4ef9b3a to your computer and use it in GitHub Desktop.
Save mantzas/26c7e9c61316579b69f935f2c4ef9b3a to your computer and use it in GitHub Desktop.
public async Task WhenAnyWhenAll()
{
var t = Task.Run(() => Console.WriteLine());
await Task.WhenAny(t);
await Task.WhenAll(t);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment