1.

What Is Future Annotation(@future)?

Answer»
  • Use the future annotation to specify that these methods that are EXECUTED asynchronously.
  • Methods with future annotation must be STATIC methods
  • Methods with future annotation can only RETURN a void type.

Syntax: 

global CLASS class_name

{

@future

Static void methodname(parameters)

{

//body of the METHOD

}

Syntax: 

global class class_name

{

@future

Static void methodname(parameters)

{

//body of the method

}



Discussion

No Comment Found