0
What is the use of “@future” annotation?

Open 1 Answers 27 Views Technology
What is the use of “@future” annotation?

1 Answer

0

Future annotations are used to identify and execute methods asynchronously. If the method is annotated with “@future”, then it will be executed only when Salesforce has the available resources.

For example, you can use it while making an asynchronous web service callout to an external service. Whereas without using the annotation, the web service callout is made from the same thread that is executing the Apex code, and no additional processing will occur until that callout is complete (synchronous processing).

by (274k points)
...