erlang.util.CyclicBarrier
A very simple and basic implementation of a synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.
A very simple and basic implementation of a synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.
-type type() :: #{'__type__' => 'erlang.util.CyclicBarrier', pid => pid()}.
-spec '__new__'(pos_integer()) -> type().
-spec await(type()) -> non_neg_integer() | timeout.
-spec await(type(), timeout()) -> non_neg_integer() | timeout.