Skip to content

Commit

Permalink
增加异步事件处理
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpttcg66 committed May 5, 2017
1 parent 3057ca9 commit 913a915
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dispatchThread消息分配模型需要的create, update, finish的事件进行
支持将多个updater绑定到同一个更新线程上,减少线程调度。
增加异步event-bus

## 异步使用例子
## 异步update使用例子

> 可参考test目录下的AsyncUpdateBusTest.
Expand All @@ -20,7 +20,7 @@ dispatchThread消息分配模型需要的create, update, finish的事件进行
8. 生成事件,放入UpdateService更新服务
9. 进行循环处理

## 异步绑定更新线程使用例子
## 异步update绑定更新线程使用例子

> 可参考test目录下的AsyncNotifyUpdateTest.
Expand All @@ -32,7 +32,7 @@ dispatchThread消息分配模型需要的create, update, finish的事件进行
8. 生成事件,放入UpdateService更新服务
9. 进行循环处理

## 同步使用例子
## 同步event-bus使用例子

> 可参考test下的SynsEventBusTest.
Expand All @@ -42,6 +42,16 @@ dispatchThread消息分配模型需要的create, update, finish的事件进行
4. 生成事件,放入eventbus
5. 进行循环处理

## 异步event-bus使用例子

> 可参考test下的AsyncEventServiceTest.
1. 生成eventbus,注册react事件模型。
2. 生成AsyncEventService,生成异步event-bus服务.
3. 生成eventbus监听器. 注册监听器
4. 生成事件,放入eventbus
5. 进行循环处理

### 代码最后通过maven部署

- 作者qq 330258845
Expand Down

0 comments on commit 913a915

Please sign in to comment.