Open frisciliasultan opened 3 years ago
I think there is no need to make cf using the supplyAsync and thenCombine. You can just make a cf when you run BusSg.findBusServicesBetween(srcId, searchString)
.
Sorry, I'm still a bit lost. If I make cf inside the while loop, how do i collect them so that I can call the join?
Description
Describe the question
I don't understand why my main is still taking 20-30s, even though I join() outside the while loop. Does anyone know what is wrong with my code? Any help would be greatly appreciated!