Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yjfnypeu committed Feb 10, 2018
1 parent b70b2c5 commit a68f69a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ User result = task.get();
#### 3. 异步回调任务

```
// 异步执行任务
Callback<User> callable = new Callback<User>(){
@Override
public void call() throws Exception {
Expand All @@ -85,6 +86,7 @@ Callback<User> callable = new Callback<User>(){
}
}
// 异步回调
AsyncCallback<User> async = new AsyncCallback<User>() {
@Override
public void onSuccess(User user) {
Expand All @@ -97,6 +99,7 @@ AsyncCallback<User> async = new AsyncCallback<User>() {
}
};
// 启动异步任务
easyThread.async(callable, async)
```

Expand All @@ -116,7 +119,7 @@ EasyThrea.Builder.scheduled(size)
easyThread.delay(time, unit);
```

**NOTE:若未在每次使用execute/submit方法启动任务前,对name与callback进行重置,则启动时将会使用默认的(使用Builder创建时设置的)参数执行**
**NOTE:若未在每次启动任务前,对name与callback进行重置,则启动时将会使用默认的(使用Builder创建时设置的)参数执行**

- 线程执行回调监听器

Expand Down

0 comments on commit a68f69a

Please sign in to comment.