Skip to content

Letoderea 0.19.0

Latest

Choose a tag to compare

@RF-Tar-Railt RF-Tar-Railt released this 30 Aug 13:55
· 32 commits to main since this release

破坏性改动

  • 取消 Python 3.9 版本的支持
  • Resultale 协议由 __result_type__: type[T] 改为 def check_result(self, value) -> Result[T] | None: ...

新增

  • waterfall 方法,其可以遍历传入的每一个 subscriber 并迭代结果 (仍然尊重 BLOCK)
  • Publisher 增加 check_subscriber 方法,允许发布者在订阅者订阅时对其进行检查或其他操作,
  • post 方法 增加参数 validate 以决定是否对返回的值进行校验
  • ExitState 增加方法 finish,以允许 STOPBLOCK 可以携带执行结果。

Full Changelog: 0.18.0...0.19.0