Waits, until interrupted, for all merges to complete.
Waits if necessary for at most the given time for all merges.