You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great lectures! This is not an issue but just a question that came to mind while reading OneShotExecutorService...
In OneShotExecutorService:processQueuedResults(), are having getQueue().take() in L196 and t.join() in L212 sufficient to ensure the tasks are finished than to also callCountDownLatch mExitBarrier.await() in L152? In other words, is the CountDownLatch necessary?
The text was updated successfully, but these errors were encountered:
Valid point, OneShotExecutorService:processQueuedResults() will return once it processes all results from the queue which in turn will only have all results after all threads have completed.
Great lectures! This is not an issue but just a question that came to mind while reading
OneShotExecutorService
...In
OneShotExecutorService:processQueuedResults()
, are havinggetQueue().take()
in L196 andt.join()
in L212 sufficient to ensure the tasks are finished than to also callCountDownLatch mExitBarrier.await()
in L152? In other words, is the CountDownLatch necessary?The text was updated successfully, but these errors were encountered: