A synchronization barrier enables multiple threads to wait until all threads have all reached a particular point of execution before any thread continues.
Aleksey Vereshchagin
gem "barrier", "~> 1.0.0"