Releases: wraikny/AwaitableCoroutine
Releases · wraikny/AwaitableCoroutine
1.8.0
Added implementation of exception propagation with await. However, it is wrapped by ChildCanceledException to distinguish which coroutine raised the exception. Use the InnerException property to get the original exception.
- Exceptions are now wrapped in
ChildCanceledExceptionand propagated when awaiting a coroutine. - The
Coroutine<T>class now extends theCoroutineclass. - Added
CoroutineStatusenumeration andCoroutine.Statusproperty. - Added the
Coroutine.IsFaultedproperty. - Changed when
OnCompletedis called and addedOnCompletedSuccessfully.
例外がawaitで伝播する実装を追加しました。ただしどのコルーチンで発生した例外化を区別するためにChildCanceledExceptionによって包んでいます。元の例外を得るために InnerException プロパティを利用してください。
バージョン1.8.0をNuGetでリリースしました。
- コルーチンをawaitしている際に例外が
ChildCanceledExceptionに包まれて伝播します。 Coroutine<T>クラスがCoroutineクラスを継承するようになりました。CoroutineStatus列挙体とCoroutine.Statusプロパティを追加しました。Coroutine.IsFaultedプロパティを追加しました。OnCompletedが呼び出されるタイミングを変更して、OnCompletedSuccessfullyを追加しました。
1.6.0
変更
asyncメソッド内でAwaitableCoroutineによって提供されるAwaitableな型をawaitできないように型制約を追加した。DelayCountがActionを追加で引数に受け取れる変更。CoroutineRunner.Updateでスローされる例外のスタックトレースが正しく出力される修正。IEnumerator.ToAwaitable拡張メソッドを削除AwaitObservable,AwaitObservableCompleted,AwaitTaskの追加。- 従来の
IsCompletedをIsCompletedSuccessfullyに変更。IsCompletedはIsCompletedSuccessfully || IsCanceledを返す。(APIをTaskに近くなるように変更した) - F#のAwaitableCoroutineBuilderに
Yieldを追加。 - その他、軽微な修正。
Changes
- Added a type constraint to prevent
awaitfrom Awaitable types provided byAwaitableCoroutinein theasyncmethod. - Changes that
DelayCountcan receive an additionalActionas an argument. - Fixed the stack trace of the exception thrown by
CoroutineRunner.Updateto be output correctly. - Removed
IEnumerator.ToAwaitableextension method - Added
AwaitObservable,AwaitObservableCompleted,AwaitTask. - Changed the old
IsCompletedtoIsCompletedSuccessfully.IsCompletedreturnsIsCompletedSuccessfully || IsCanceled. (Changed API to be closer toTask) - Added
Yieldto AwaitableCoroutineBuilder in F #. - Other minor corrections.
1.5.1
1.5.0
1.4.0
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
Install from NuGet Gallery