Before we move onto simplifying async files in Rust, it's important to learn in which areas the current implementations need improvement. This might surprise you... 1/9
-
-
If you want to read or write files inside async programs, spawn a blocking task using async_std::task::spawn_blocking() or tokio::task::spawn_blocking() and do synchronous I/O in there. That's the only easy, efficient, and reliable way of doing file I/O today. 9/9pic.twitter.com/Fwg1rCd368
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
not really a choice in UIs so rio it is!
-
What about calling spawn_blocking() and doing synchronous file I/O there? Is that an option?
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.