Replaced TaskCompletionSource<T> with Task.FromResult().