Skip to content

Commit

Permalink
Add a bit more explicit differentiation between sync and sync
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanymkanov committed Jun 8, 2024
1 parent c2c4d16 commit 00c60c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ from src.posts.constants import ErrorCode as PostsErrorCode # in case we have S
## Async Routes
FastAPI is an async framework, in the first place. It is designed to work with async I/O operations and that is the reason it is so fast.

However, FastAPI doesn't restrict you to use only `async` routes, and the developer can use `sync` routes as well (with a price).
However, FastAPI doesn't restrict you to use only `async` routes, and the developer can use `sync` routes as well (with a price). This might confuse beginner developers into believing that they are the same, but they are not.

### I/O Intensive Tasks
Under the hood, FastAPI can [effectively handle](https://fastapi.tiangolo.com/async/#path-operation-functions) both async and sync I/O operations.
Expand Down

0 comments on commit 00c60c8

Please sign in to comment.