Add IAsyncDisposable to ComputeContext
このコミットが含まれているのは:
1 親
fdec5df11d
コミット
c03006aa67
11ファイル変更
+328
-60
検索条件に一致するファイルはありません
@@ -27,5 +27,6 @@
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\OSPlatformAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSVersionAttribute.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)System\Threading.Tasks\TaskCompletionSource.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする