Skip to content

Commit

Permalink
Fix erroneous use of TaskContinuationOptions in ThreadUtils.cs
Browse files Browse the repository at this point in the history
This was supposed to be TaskCreationOptions.
  • Loading branch information
stephentoub authored Apr 20, 2021
1 parent ebc431f commit 2c5f888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Utilities/ThreadUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static Task QueueAsync(Delegate threadStart, object state)
// Call sites only care about completion, not about the distinction between
// success and failure and do not expect exceptions to be propagated in this manner,
// so only SetResult is used.
var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);

// Queue the work for a thread to pick up. If no thread is immediately available, it will create one.
Enqueue((threadStart, state, tcs));
Expand Down

0 comments on commit 2c5f888

Please sign in to comment.