use PooledDelegate to avoid convert Action to Action<AsyncOperation> allocation

This commit is contained in:
neuecc
2020-05-27 07:37:16 +09:00
parent 35b933730b
commit 10fb8060fa
8 changed files with 130 additions and 53 deletions

View File

@@ -59,7 +59,7 @@ namespace Cysharp.Threading.Tasks
#if NETCOREAPP3_1
public sealed class ThreadPoolWorkItem : IThreadPoolWorkItem
sealed class ThreadPoolWorkItem : IThreadPoolWorkItem
{
static readonly ConcurrentQueue<ThreadPoolWorkItem> pool = new ConcurrentQueue<ThreadPoolWorkItem>();