Skip to content

Commit

Permalink
change api 'ConfigureAwait(bool)' -> 'EnableContextCapture()'
Browse files Browse the repository at this point in the history
  • Loading branch information
acple committed Dec 15, 2016
1 parent 3cc1b45 commit 8efec9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ContextFreeTasks.Shared/ContextFreeTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public struct ContextFreeTask
internal ContextFreeTask(Task t) => _task = t;
public ContextFreeTaskAwaiter GetAwaiter() => new ContextFreeTaskAwaiter(Task);
public void Wait() => _task?.Wait();
public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) => Task.ConfigureAwait(continueOnCapturedContext);
public ConfiguredTaskAwaitable EnableContextCapture() => Task.ConfigureAwait(true);
}
}
2 changes: 1 addition & 1 deletion src/ContextFreeTasks.Shared/ContextFreeTask_T.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public struct ContextFreeTask<T>
internal ContextFreeTask(Task<T> t) => _task = t;
public ContextFreeTaskAwaiter<T> GetAwaiter() => new ContextFreeTaskAwaiter<T>(Task);
public void Wait() => _task?.Wait();
public ConfiguredTaskAwaitable<T> ConfigureAwait(bool continueOnCapturedContext) => Task.ConfigureAwait(continueOnCapturedContext);
public ConfiguredTaskAwaitable<T> EnableContextCapture() => Task.ConfigureAwait(true);
}
}

0 comments on commit 8efec9e

Please sign in to comment.