Skip to content

Releases: wraikny/AwaitableCoroutine

1.8.0

13 Jun 10:53
Compare
Choose a tag to compare

#14 #15

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 ChildCanceledException and propagated when awaiting a coroutine.
  • The Coroutine<T> class now extends the Coroutine class.
  • Added CoroutineStatus enumeration and Coroutine.Status property.
  • Added the Coroutine.IsFaulted property.
  • Changed when OnCompleted is called and added OnCompletedSuccessfully.

例外がawaitで伝播する実装を追加しました。ただしどのコルーチンで発生した例外化を区別するためにChildCanceledExceptionによって包んでいます。元の例外を得るために InnerException プロパティを利用してください。

バージョン1.8.0をNuGetでリリースしました。

  • コルーチンをawaitしている際に例外が ChildCanceledException に包まれて伝播します。
  • Coroutine<T> クラスが Coroutine クラスを継承するようになりました。
  • CoroutineStatus 列挙体と Coroutine.Status プロパティを追加しました。
  • Coroutine.IsFaulted プロパティを追加しました。
  • OnCompleted が呼び出されるタイミングを変更して、OnCompletedSuccessfully を追加しました。

1.6.0

19 Jan 12:42
Compare
Choose a tag to compare

変更

  • asyncメソッド内でAwaitableCoroutineによって提供されるAwaitableな型をawaitできないように型制約を追加した。
  • DelayCountActionを追加で引数に受け取れる変更。
  • CoroutineRunner.Updateでスローされる例外のスタックトレースが正しく出力される修正。
  • IEnumerator.ToAwaitable 拡張メソッドを削除
  • AwaitObservable, AwaitObservableCompleted, AwaitTaskの追加。
  • 従来のIsCompletedIsCompletedSuccessfullyに変更。IsCompletedIsCompletedSuccessfully || IsCanceledを返す。(APIをTaskに近くなるように変更した)
  • F#のAwaitableCoroutineBuilderにYieldを追加。
  • その他、軽微な修正。

Changes

  • Added a type constraint to prevent await from Awaitable types provided by AwaitableCoroutine in the async method.
  • Changes that DelayCount can receive an additional Action as an argument.
  • Fixed the stack trace of the exception thrown by CoroutineRunner.Update to be output correctly.
  • Removed IEnumerator.ToAwaitable extension method
  • Added AwaitObservable, AwaitObservableCompleted, AwaitTask.
  • Changed the old IsCompleted to IsCompletedSuccessfully. IsCompleted returns IsCompletedSuccessfully || IsCanceled. (Changed API to be closer to Task)
  • Added Yield to AwaitableCoroutineBuilder in F #.
  • Other minor corrections.

1.5.1

18 Jan 08:54
Compare
Choose a tag to compare
update build.fsx

1.5.0

11 May 18:58
Compare
Choose a tag to compare
update version to 1.5.0

1.4.0

10 May 17:39
Compare
Choose a tag to compare
update versions

1.3.0

09 May 03:54
Compare
Choose a tag to compare
update version

1.2.2

08 May 21:09
Compare
Choose a tag to compare
update version

1.2.1

08 May 09:46
Compare
Choose a tag to compare
fix ci

1.2.0

08 May 06:39
Compare
Choose a tag to compare
update csproj

1.1.0

07 May 10:31
Compare
Choose a tag to compare

Install from NuGet Gallery