-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support background task on ctx #119
Conversation
@fengmk2, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dead-horse and @popomore to be potential reviewers. |
6a8ecbe
to
6c0c63a
Compare
Current coverage is 95.78% (diff: 100%)
|
这个的使用场景? 用户请求后先返回 response,然后后台跑任务? |
等内部合并了再合这个。 |
6c0c63a
to
ba78878
Compare
@fengmk2 这个可以更新了吧? |
f36d788
to
7831899
Compare
```js ctx.runAtBackground(function* (ctx) { // async actions here }); ```
7831899
to
5cc3ab4
Compare
travis 过了, 但 circleci 的这个报错很诡异 https://circleci.com/gh/eggjs/egg/120 |
appveyor 还是挂了 https://ci.appveyor.com/project/eggjs/egg/build/1.0.222/job/fjecxu5vt4xtava2 先合了吧 |
按 npm 官方文档不应该的 |
改了哪里? |
nvm i 7 && npm install |
Co-authored-by: 零弌 <[email protected]>
Checklist
npm test
passesAffected core subsystem(s)
Description of change