Date: 04/05/14 (Code WTF) Keywords: no keywords
// C#, .NET Framework 4.0 (or 4.5, with the same result)
private void ExecuteOnWorkerThread(Action action)
{
Task.Factory.StartNew(()=>action, CancellationToken.None, TaskCreationOptions.PreferFairness, TaskScheduler.Default);
}
|