The actual code is very big, I tried to simplify it as much as possible.
The design is such we cannot call the continuation method directly. So looking for ways of invoking it. Many thanks!
Is it True , Continuation callback is invoked only when a continuation is initialized from Visualforce only. It will not work if continuation is initiated by any Apex.If yes, then how can we use Continuation in this scenario.