Coen
04/14/2021, 12:39 PMRob Elliot
04/14/2021, 1:17 PMRob Elliot
04/14/2021, 1:20 PMimport java.util.concurrent.Executors
val executor = Executors.newCachedThreadPool()
val future1 = executor.submit { /* make the request here */ }
val future2 = executor.submit { /* make the request here */ }
val res1 = future1.get()
val res2 = future2.get()
Coen
04/14/2021, 1:21 PM