Futuresperformed using ExecutionContext. There are several ways to build ExecutionContext. One of them is to create it with ExecutionService. For example, ExecutionServicemaybe ForkJoinPoolor ThreadPoolExecutor. Depending on the implementation, ExecutionServiceyour futures will be executed by creating a new one Threador reusing existing ones.
source
share