smol
smol copied to clipboard
Make the documentation of Async::new explicit on the fact that it does not support regular files?
Hey! I just got tricked by #61, and checking the documentation wasn't that helpful: I was thinking that smol somehow had some kind of dark magic to make it work even though it was a file.
Reading #61 I understood what was wrong in my code (and I have been able to easily replace smol::Async
with smol::Unblock
), but to get to it I had to strace
my process and figure out that the “permission denied” that was reported was due to epoll_ctl
failing.
Hence, a suggestion: what would you think about making the documentation for Async::new
and Unblock::new
point to each other so people cannot miss the fact that the two exist and each cover their own ground?
Would you like to make a small PR for it? 😃
a small smol PR would be appreciated