Skip to content

Commit

Permalink
about async
Browse files Browse the repository at this point in the history
  • Loading branch information
youxingxiang committed Mar 25, 2021
1 parent 1b9f1f9 commit 01fa68c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yxx_laravel_event_sourcing.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,4 +366,5 @@ class Projectionist
return true;
}
```
如果我们不希望循环执行所有 Projector 和 Reactor 时候被中断,可以在 event-sourcing.php 配置文件的 catch_exceptions 设置为 true,然后在 Projector 和 Reactor 自定义 handleException 方法处理我们的异常。
如果我们不希望循环执行所有 Projector 和 Reactor 时候被中断,可以在 event-sourcing.php 配置文件的 catch_exceptions 设置为 true,然后在 Projector 和 Reactor 自定义 handleException 方法处理我们的异常。
通过阅读以上代码可知 [Laravel-Event-Sourcing](https://spatie.be/docs/laravel-event-sourcing/v4/introduction) 的异步是针对事件异步,不是针对监听这个事件的 Projector 和 Reactor 进行的异步。这一点是需要特别注意的。

0 comments on commit 01fa68c

Please sign in to comment.