In this blog post, we will look at how to invoke an Apex method using Continuation.
The reason behind using Continuation is when we want to make time-consuming actions (like making a callout to an external platform etc) we will be going with this option.
Let's look at the sample code (please check the comments in the code)!
This is the Controller of the Web Component that invoke the apex method.
Hope this was helpful!