I know the internet is littered with fragments of information on this subject, but none of them seems to provide a clear explanation of how you incorporate
async functions into synchronous code.
I seem to be caught between a rock and a hard place. I have to call an API that provides only an
async function, but this is called from a framework that provides only a synchronous function where I can call from. Therefore, it doesn't matter how far I propagate
async keywords through my own code, sooner or later I bump into the problem of calling an
async method from synchronous code.
More generally, I must be doing something wrong with this stuff. The
await keywords are supposed to simplify parallel programming. I am finding the exact opposite. I've done parallel programming in C, C++ and now C# (using the TPL), and I have to say that I have never had so many problems as I am having now.
What am I missing?
Kind wishes ~ Patrick
What I have tried:
I'm tempted to say I have tried everything, but that's not enough characters for this box.
Sorry for the vagueness of the question, but I'm really struggling to find clear explanations of how to use asynch