Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd like a single-threaded async pull-based http library


I'm not sure what you mean by "pull-based", but you can make the whole thing single-threaded with `#[tokio::main(flavor = "current_thread")]`

See https://docs.rs/tokio/latest/tokio/attr.main.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: