Skip to content

Commit

Permalink
Merge pull request #350 from Reactive-Extensions/NoTaskEx
Browse files Browse the repository at this point in the history
Removing TASKEX symbol
  • Loading branch information
bartdesmet authored Apr 13, 2017
2 parents 8ece5d1 + 49c4987 commit 73555ff
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Rx.NET/Source/src/System.Reactive/Concurrency/TaskHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,12 @@ public static Task Delay(TimeSpan delay, CancellationToken token)
var remainder = delay - TimeSpan.FromMilliseconds(MAX_DELAY);

return
#if USE_TASKEX
TaskEx.Delay(MAX_DELAY, token)
#else
Task.Delay(MAX_DELAY, token)
#endif
.ContinueWith(_ => Delay(remainder, token), TaskContinuationOptions.ExecuteSynchronously)
.Unwrap();
}

#if USE_TASKEX
return TaskEx.Delay(delay, token);
#else
return Task.Delay(delay, token);
#endif
}
}
}
Expand Down

0 comments on commit 73555ff

Please sign in to comment.