-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #287
- Loading branch information
Showing
7 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: 资源 | ||
--- | ||
|
||
## 框架列表 | ||
|
||
- [aliyun-egg](https://github.com/eggjs/aliyun-egg) | ||
|
||
## 社区文章 | ||
|
||
- [如何评价阿里开源的企业级 Node.js 框架 egg?](https://www.zhihu.com/question/50526101/answer/144952130) | ||
[天猪](https://github.com/atian25) | ||
|
||
- 你也可以到[知乎专栏](https://zhuanlan.zhihu.com/eggjs)看我们的文章 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
title: 使用 async function 开发应用 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,4 @@ guide_toc: | |
Contributing: 如何贡献 | ||
Member Guide: 成员指南 | ||
FAQ: 常见问题 | ||
Resource: 资源 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
'use strict'; | ||
|
||
const sleep = require('ko-sleep'); | ||
|
||
|
||
module.exports = app => { | ||
app.get('/', function*() { | ||
this.logger.debug('hi %s %s', this.method, this.url); | ||
// wait for writing to file | ||
yield sleep(1000); | ||
this.body = 'ok'; | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters