/// <summary> /// Initializes a new instance of the <see cref="AsyncLocal46"/> class. /// </summary> public AsyncLocal46() { this.asyncLocal = LightUps <T> .CreateAsyncLocal(); }
internal static bool TrySetCanceled <T>(this TaskCompletionSource <T> tcs, CancellationToken cancellationToken) { return(LightUps <T> .TrySetCanceled != null ? LightUps <T> .TrySetCanceled(tcs, cancellationToken) : tcs.TrySetCanceled()); }