v2.6.0
Enhancements:
- Added
Promise.AllSettled
andPromise.MergeSettled
APIs. - Added message between causality stack traces (matches behavior of
ExceptionDispatchInfo
).
Fixes:
- Fixed a
NullReferenceException
whenPromiseYielder
is used afterOnApplicationQuit
. - Fixed a race condition with progress.
- Fixed a race condition with cancelations (was not an issue in RELEASE mode).
- Fixed causality trace not being preserved when a progress callback is invoked synchronously from an already resolved promise.
Optimizations:
- Fixed PromiseMethodBuilders allocating in tier0 jit.
- Object pool uses pointers for clear event instead of delegates in C# 9.
- Use
Interlocked
instead of lock for fasterPromise.ParallelFor
. - Optimized
PromiseSynchronizationContext.Post
. - Other small miscellaneous performance improvements.
Deprecated:
- Deprecated
ResultContainer.Result
, renamed toResultContainer.Value
. - Deprecated
ResultContainer.RejectReason
, renamed toResultContainer.Reason
.