Kalpa Senanayake
1 min readSep 10, 2018

--

Datkins, The ‘executor’ is the reference for the worker thread pool. The supplyAsync() method has a overloaded version as follows.

public static <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier, Executor executor)

Hope this helps.

--

--

Kalpa Senanayake
Kalpa Senanayake

Written by Kalpa Senanayake

Solutions Architect | Senior Engineer | Cloud | API | System Design

No responses yet