Skip to main content
Question modified
Source Link
Manu Tej
  • 313
  • 1
  • 2
  • 9

I have an apex class associated with lightning component. I have @AuraEnabled methods inside my apex class. Now do I have to use @future(callout=true) method to execute asynchronously ?

Simply my question is, Is it required to call @Future(callout=true) from @auraEnabled Method if I want to make a asynchronous callout?

Adding below question after comments from David

If I want to make an asynchronous callout(As my external system is time consuming and I don't have requirement to show the response in UI), do I have to call Future method from AuraEnabled method ? or by default it will execute asynchronously?

I have an apex class associated with lightning component. I have @AuraEnabled methods inside my apex class. Now do I have to use @future(callout=true) method to execute asynchronously ?

Simply my question is, Is it required to call @Future(callout=true) from @auraEnabled Method if I want to make a asynchronous callout?

I have an apex class associated with lightning component. I have @AuraEnabled methods inside my apex class. Now do I have to use @future(callout=true) method to execute asynchronously ?

Simply my question is, Is it required to call @Future(callout=true) from @auraEnabled Method if I want to make a asynchronous callout?

Adding below question after comments from David

If I want to make an asynchronous callout(As my external system is time consuming and I don't have requirement to show the response in UI), do I have to call Future method from AuraEnabled method ? or by default it will execute asynchronously?

fixed grammar
Link
Manu Tej
  • 313
  • 1
  • 2
  • 9

@auraEnabled @AuraEnabled Method will execute in synchronous or asynchronous?

Source Link
Manu Tej
  • 313
  • 1
  • 2
  • 9

@auraEnabled Method will execute in synchronous or asynchronous?

I have an apex class associated with lightning component. I have @AuraEnabled methods inside my apex class. Now do I have to use @future(callout=true) method to execute asynchronously ?

Simply my question is, Is it required to call @Future(callout=true) from @auraEnabled Method if I want to make a asynchronous callout?