Activity Forums Salesforce® Discussions Difference between synchronous and asynchronous in apex Reply To: Difference between synchronous and asynchronous in apex

  • Radhakrishna

    Member
    July 13, 2017 at 4:38 am

    Hello Shubham,

    An async call is queued up in Salesforce and run on a separate thread of execution. At this point it becomes decoupled from the calling action. That also means the calling action won't block and wait for a response from the asycn call. Using the future annotation identifies methods that are executed asynchronously. They must also be static methods. There are some considerations to know when using async methods.

     

    you can learn more here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm