Add IAsyncDisposable to ComputeContext

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-30 17:03:28 +01:00
1 親 fdec5df11d
コミット c03006aa67
11ファイル変更
+328 -60

検索条件に一致するファイルはありません

+15
ファイルの表示
@@ -0,0 +1,15 @@
namespace System.Threading.Tasks;
/// <summary>
/// A polyfill type that mirrors the non-generic <see cref="TaskCompletionSource{T}"/> type on .NET 6.
/// </summary>
internal sealed class TaskCompletionSource : TaskCompletionSource<object?>
{
/// <summary>
/// Transitions the underlying <see cref="Task"/> into the <see cref="TaskStatus.RanToCompletion"/> state.
/// </summary>
public void SetResult()
{
SetResult(null);
}
}