Skip to content

Commit 207dd5a

Browse files
authored
Update README.md
1 parent 9ae73e3 commit 207dd5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ testRaceCondition();
267267

268268
`func2` will be executed when `fun1` is not finished.
269269

270+
#### Real world cases
271+
270272
In backend, the practical example is to compare `Async/await` in [Express](https://expressjs.com/) framework and [Apollo](https://www.apollographql.com/docs/apollo-server/)/[NestJS](https://nestjs.com/) frameworks. [NestJS' GraphQL part](https://docs.nestjs.com/graphql/quick-start) is using Apollo and they have a different implementation than ExpressJS. [NestJS' Restful part](https://docs.nestjs.com/controllers) is the same as ExpressJS.
271273

272274
No race condition on two API call in `Express`, any API will be executed one by one. After async handler callback function is finished, another starts to be executed.

0 commit comments

Comments
 (0)