ForkJoinPool.awaitQuiescence

If called by a ForkJoinTask operating in this pool, equivalent in effect to {@link ForkJoinTask#helpQuiesce}. Otherwise, waits and/or attempts to assist performing tasks until this pool {@link #isQuiescent} or the indicated timeout elapses.

@param timeout the maximum time to wait @param unit the time unit of the timeout argument @return {@code true} if quiescent; {@code false} if the timeout elapsed.

class ForkJoinPool
bool
awaitQuiescence
(
Duration timeout
)

Meta