thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

Future Method

Apex method annotated @future that runs asynchronously in its own transaction.

Definition

Future methods must be static, return void and accept only primitive types or collections of primitives. @future(callout=true) allows callouts. They cannot be chained or monitored easily and cannot call other future methods.

Example

@future(callout=true) public static void sync(Set<Id> ids) { ... }

Exam tip

Future methods cannot accept sObjects; pass IDs instead.

Related terms