Commit fda90baf authored by Nick Craver's avatar Nick Craver

Cleanup: TaskSource

parent 05471043
...@@ -76,12 +76,16 @@ static TaskSource() ...@@ -76,12 +76,16 @@ static TaskSource()
IsSyncSafe = null; IsSyncSafe = null;
} }
if (IsSyncSafe == null) if (IsSyncSafe == null)
IsSyncSafe = t => false; // assume: not {
IsSyncSafe = _ => false; // assume: not
}
} }
#endif #endif
/// <summary> /// <summary>
/// Create a new TaskCompletion source /// Create a new TaskCompletion source
/// </summary> /// </summary>
/// <typeparam name="T">The type for the created <see cref="TaskCompletionSource{TResult}"/>.</typeparam>
/// <param name="asyncState">The state for the created <see cref="TaskCompletionSource{TResult}"/>.</param>
public static TaskCompletionSource<T> Create<T>(object asyncState) public static TaskCompletionSource<T> Create<T>(object asyncState)
{ {
#if PLAT_SAFE_CONTINUATIONS #if PLAT_SAFE_CONTINUATIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment