# Stjepan - Blocking Inside Async Code (Highlights)

## Metadata
**Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png
**Source**:: #from/readwise
**Zettel**:: #zettel/fleeting
**Status**:: #x
**Authors**:: [[Stjepan]]
**Full Title**:: Blocking Inside Async Code
**Category**:: #articles #readwise/articles
**Category Icon**:: 📰
**Document Tags**:: #async-programming #rust
**URL**:: [stjepang.github.io](https://stjepang.github.io/2019/12/04/blocking-inside-async-code.html)
**Host**:: [[stjepang.github.io]]
**Highlighted**:: [[2020-03-01]]
**Created**:: [[2022-09-26]]
## Highlights
- Blocking is everywhere
- Consider **standard input** and **output**. It’s pretty obvious that reading from
the standard input blocks and you shouldn’t use `std::io::Stdin` inside async code.
But would you raise a brow if you saw `println!()` there? I bet we all most of the
time assume printing to standard output does not block while it really could.