Skip to content

Instantly share code, notes, and snippets.

@peteraritchie
Created February 8, 2014 15:32
Show Gist options
  • Save peteraritchie/8885503 to your computer and use it in GitHub Desktop.
Save peteraritchie/8885503 to your computer and use it in GitHub Desktop.
var context = TaskScheduler.FromCurrentSynchronizationContext();
TimeConsumingMethodAsync().ContinueWith(_ =>
{
myButton.IsEnabled = true;
},
context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment