Reduce allocations for ComputeContext async execution
このコミットが含まれているのは:
1 親
c03006aa67
コミット
ff59d3f5ad
4ファイル変更
+132
-31
検索条件に一致するファイルはありません
@@ -1,15 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする