Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
java_expert_123
· 4y ago · 0 comments
I'd like a single-threaded async pull-based http library
Comments
[–]
fasterthanlime
4y ago
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