AsyncBarrierUtils constructor

AsyncBarrierUtils(
  1. int count
)

Creates a barrier that completes after count calls to signal. Throws an ArgumentError when count is less than 1. Audited: 2026-06-12 11:26 EDT

Implementation

factory AsyncBarrierUtils(int count) {
  if (count < 1) throw ArgumentError(_kErrCountAtLeastOne);
  return AsyncBarrierUtils._(count);
}