function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
praveen p 11praveen p 11 

future annotation

what is future annotation?how it works
Cloud_forceCloud_force
Hi Praveen,

@future annotaion is used so that a method can be executed assynchronously meaning the method will be exceuted when salesforce has rsources avalibale. That is the method will not be executed immedietly.

thanks,
http://www.forcexplore.com/2014/01/salesforce-interview-question-1.html
Abhishek_PareekAbhishek_Pareek
Hi Praveen,

@future annotation is used to fire a method asynchronously,which means that the method with @future annotation is executed in a different thread. You can refer below article for detailed explanation for @future method and it's use cases.
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm (https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm" target="_blank)