Skip to content

Instantly share code, notes, and snippets.

@angularsen
Created January 5, 2015 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angularsen/7b48d281bb2a7cc5cf1a to your computer and use it in GitHub Desktop.
Save angularsen/7b48d281bb2a7cc5cf1a to your computer and use it in GitHub Desktop.
public static class TaskExtensions
{
public static async void ForgetAsync(this Task task)
{
try
{
await task.ConfigureAwait(false);
}
catch
{
// ignore
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment