Forum Community

How to build up a synchronous wrapper around asynchronous code

DuraiHDuraiH USMember ✭✭

I have a piece of code that does work on Asynchronous way but I want a wrapper around that which wait for it finish the operation, basically the following code depend on the output of the previous asynchronous code snippet.

It couldn't be converted to synchronous as it has been extensively used all the places.



  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
    I think you have posted to a wrong forum... btw if you use async and await, first code should finish and then second code should start
Sign In or Register to comment.