threadsBefore method

int threadsBefore(
  1. int index
)

Number of thread slots strictly before a mixed slot index.

index may equal length, for computing a total content extent.

Implementation

int threadsBefore(int index) {
  RangeError.checkValueInInterval(index, 0, length, 'index');
  return _lowerBound(_threadPositions, index);
}