This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
Ver 6.2.0(6.2.1)
Improve cancellation/exception handling in UniRx.Async
.
All unhandled exception was routed to UniTaskScheduler.UnobservedTaskException
(called UniTask/UniTaskVoid.Forget
or when unhandled task was GCed)
OperationCanceledException
can modify to AwaiterStatus.Canceled
in async method and can ignore when routed to top.
New UniRx -> UniTaskTracker
editor window can detect async/await memory leak easily.
- Add
UniTask.Run
- Add
UniTask.SwitchToSynchronizationContext
- Add
UniTask.Lazy
- Add
UniTask.Void
- Add
UniTask.SwitchToMainThread
- Add
UniTask.SuppressCancellationThrow
- Add
CancellationTokenSource.CancelAfterSlim
- Add
CancellationTokenSource.RegisterRaiseCancelOnDestroy
- Add
Progress.CreateOnlyValueChanged
- Add
UniTaskScheduler(UnobservedTaskException/PropagateOperationCanceledException/UnobservedExceptionWriteLogType/DispatchUnityMainThread)
- Add
Task.AsUniTask(bool useCurrentSynchronizationContext)
- Add await support to
ValueTuple
- Add
UniRx -> UniTaskTracker
editor window - Add
Dropdown.OnValueChangedAsync
- Add
Dropdown.OnValueChangedAsObservable
- Add
StackTrace.CleanupAsyncStackTrace
- Add
Exception.CleanupAsyncStackTrace
- Add
ReactiveProperty.WaitUntilValueChangedAsync(CancellationToken)
- Add
ReactiveCommand.WaitUntilExecuteAsync(CancellationToken)
- Add
AwaiterStatus.IsCompleted/IsCompletedSuccessfully/IsCanceled/IsFaulted
extension methods - Fix
UniTask.SwitchToThreadPool
does not yield correctly - Fix
UniTask.SwitchToTaskPool
does not yield correctly - Fix
IEnumerable[UniTask]
shortcut #336, thanks @reqweldzen - Fix Propagate
Canceled
status when throwsOperationCanceledException
- Improve AsyncTriggers throws
OperationCanceledException
when trigger was destroyed - Improve unhandled exception was routed to
UniTaskScheduler.UnobservedTaskException
when unahandled task was GCed - Improve peformance
UniTask.WhenAll
- Improve performance
UniTask.Yield
- Improve reduce AsyncStateMachine garbage
- Improve
UniTask.ToString
shows status - Breaking Changes
UniTask.WithCancellation
is removed(useSuppressCancellationThrow
instead) - Internaly Unit test moved to Unity Test Runner
6.2.1
- Improve
Enumerable.Select(async x => { })
returnsIEnumerable<UniTask<T>>
instead ofIEnumerable<Task<T>>
- Improve performance single uGUI async event handling
- Fix
button.OnInvokeAsync
->button.OnClickAsync
- Add
AsyncUnityEventHandler.OnInvokeAsyncSuppressCancellationThrow
- Fix AsyncTriggers does not work correctly