Add IAsyncDisposable to ComputeContext
このコミットが含まれているのは:
1 親
fdec5df11d
コミット
c03006aa67
11ファイル変更
+328
-60
検索条件に一致するファイルはありません
@@ -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);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする