Skip to content

Comments

New evolution : adding comments/explanations#4

Open
medaminefracso wants to merge 6 commits intomanouti:masterfrom
medaminefracso:master
Open

New evolution : adding comments/explanations#4
medaminefracso wants to merge 6 commits intomanouti:masterfrom
medaminefracso:master

Conversation

@medaminefracso
Copy link

@medaminefracso medaminefracso commented May 15, 2022

  • Explaining how the program works
  • adding the processing duration to set the cars ratings

The main thread is running too fast so that it doesn't wait for the
Completable future thread that is running asynchronously to end
The main thread sleeps a bit to wait for the other thread to complete.
The main thread output shows up before the completableFuture result
In this case, the main thread waits for a longer time and it shows up
after the completableFuture output/result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant