提交 51edc813 编写于 作者: J JieCarolHu

revert ModelComputation.cs

上级 22a78849
......@@ -120,6 +120,8 @@ public virtual void Stop()
Func<TModel, CancellationToken, Task<TModel>> transformModelAsync,
bool updateController = true)
{
AssertIsForeground();
Contract.ThrowIfTrue(_stopCancellationToken.IsCancellationRequested, "should not chain tasks after we've been cancelled");
// Mark that an async operation has begun. This way tests know to wait until the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册