nonSuspendOf

fun <InternalAccumulator, Value, Result> nonSuspendOf(supply: () -> InternalAccumulator, accumulate: (current: InternalAccumulator, value: Value) -> Unit, finish: (current: InternalAccumulator) -> Result, characteristics: Set<Characteristics> = setOf()): NonSuspendCollector<Value, Result>

Constructs a new Collector from its components


fun <Value, Result> nonSuspendOf(supply: () -> Result, accumulate: (current: Result, value: Value) -> Unit, characteristics: Set<Characteristics> = setOf()): NonSuspendCollector<Value, Result>

Constructs a new Collector from its components, where the accumulated value is directly its result