Can people show me code where they’re performing multiple IO actions in a single method chain and they think that’s *good*?
Do you perhaps have a more concrete example? I suppose you are talking about these lines of code: https://github.com/spacejam/sled/blob/c1591e2133c60298f67feb7718740ce1729d4a9b/crates/pagecache/src/segment.rs#L699 … With async/await, isn't that going to be something like: await? f.write_all(...); await? f.sync_all();
-
-
That's a good example of the multiple io operations needing each other and sharing failure domains + handling, but maybe I am misunderstanding the original question.
-
The point is they aren’t a method chain, write doesn’t return the object sync_all is called on
End of conversation
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.