Add pooling to `AttachExternalCancellationSource`
Author: Joy-lessCreated Mar 12, 2026Updated Sep 9, 2026
Labelsstale
While IUniTaskSources like DelayPromise use pooling, the sources AttachExternalCancellationSource and AttachExternalCancellationSource<T> don't.
It may be ideal to use pooling for these sources to avoid allocations. In the GDTask port, I attempted to add and fix bugs with pooling to these sources. However, it resulted in bugs which I don't know how to fix.
If it could be implemented correctly in this repository, that would be great.
Source: Cysharp/UniTask