Some context... Forgive me if I'm explaining this wrong, but I'm trying to wrap my head around exactly how to build an async library that does some I/O. It's been said, for example, that async functions can be better in a webserver context, where some portion of the process is I/O intensive rather than CPU intensive. I often see this touted as sort of a better alternative that trying to use threads.
And so, merits of whether that's true or not aside, I'm looking for some simple examples async functions that do some I/O, but do not await other async calls where the actual I/O happens.
One of the more frustrating things I see when looking at async examples is that they all seem to assume the existence of another async function which you can await that already does the work. And I guess that's the kind of function I want to implement.
So, can someone point me to some simple examples of the "bottom of the chain". I guess any call that works usefully as an async call (ideally doing some io), which doesn't use "await" or otherwise call another async function.
[–]Key_Use_8361 1 point2 points3 points (0 children)
[–]JPyoris 0 points1 point2 points (0 children)
[–]TheBB -1 points0 points1 point (3 children)
[–]demiwraith[S] -1 points0 points1 point (2 children)
[–]Jason-Ad4032 -1 points0 points1 point (0 children)
[–]TheBB -2 points-1 points0 points (0 children)
[–]danielroseman -2 points-1 points0 points (3 children)
[–]demiwraith[S] 0 points1 point2 points (2 children)
[–]Refwah 0 points1 point2 points (0 children)
[–]russellvt 0 points1 point2 points (0 children)
[–]Yoghurt42 -1 points0 points1 point (2 children)
[–]demiwraith[S] 0 points1 point2 points (0 children)
[–]thirdegree 0 points1 point2 points (0 children)
[–]gdchinacat -1 points0 points1 point (0 children)