<PackageReference Include="NETStandard.Library" Version="2.0.0-preview2-25401-01" />

System.Threading.Tasks.TaskCompletionSource<TResult>

public class TaskCompletionSource<TResult>
namespace System.Threading.Tasks { public class TaskCompletionSource<TResult> { public Task<TResult> Task { get; } public TaskCompletionSource(); public TaskCompletionSource(object state); public TaskCompletionSource(object state, TaskCreationOptions creationOptions); public TaskCompletionSource(TaskCreationOptions creationOptions); public void SetCanceled(); public void SetException(IEnumerable<Exception> exceptions); public void SetException(Exception exception); public void SetResult(TResult result); public bool TrySetCanceled(); public bool TrySetCanceled(CancellationToken cancellationToken); public bool TrySetException(IEnumerable<Exception> exceptions); public bool TrySetException(Exception exception); public bool TrySetResult(TResult result); } }