0 votes
21 views
What is the use of “@future” annotation?
in Technology by (189k points)

1 Answer

0 votes

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 (189k points)

Related questions

0 votes
1 answer 13 views
0 votes
1 answer 11 views
0 votes
1 answer 17 views
0 votes
1 answer 13 views
0 votes
1 answer 23 views
0 votes
1 answer 16 views
0 votes
1 answer 16 views
0 votes
1 answer 15 views
0 votes
1 answer 12 views
0 votes
1 answer 11 views
11 views asked Nov 11, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 12 views
12 views asked Nov 11, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 12 views
0 votes
1 answer 10 views
10 views asked Nov 11, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 11 views
0 votes
1 answer 12 views
0 votes
1 answer 19 views
0 votes
1 answer 11 views
0 votes
1 answer 17 views
0 votes
1 answer 9 views
0 votes
1 answer 12 views
12 views asked Nov 11, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 16 views
0 votes
1 answer 24 views
...