algorithm - 是否可以处理责任链实施中的收敛?
问题描述
我想在我的实现中实现处理程序的扇出和收敛。处理此类情况的最佳做法是什么。例如
handler1->handler2,handler3
handler2->handler4
handler3->handler4
handler4->handler5 //this should be executed only if both handlers handler2 and handler3 are completed.
解决方案
推荐阅读
- javascript - 内容安全策略指令“script-src”的源列表包含 safari angular 5 中的无效源
- c# - C#, JSON, 反序列化成 DataTable
- python - 大 O 表示法:在 Django 模板中使用多个 forloops VS 在 views.py 中使用过滤器的多个查询
- c# - EF Core 动态过滤器
- rx-java - RxJava:我可以在传递给 onError 之前拦截所有错误吗?
- r - 编写函数来计算百分比并将其放在数据框的新列中
- mongodb - 有没有更好的方法来检索模型值?
- powershell - 从包含特定模式的日志中提取数据
- python - 解析excel文件中的数据以创建数据框
- javascript - Javascript 中的 if 语句太长