lane

fun lane(name: String, weight: Weight = Weight.ONE)

Declares a lane named name, where work is charged, with weight among its siblings.


fun lane(name: String, weight: Weight = Weight.ONE, maxConcurrent: Long?)

Declares a lane as the overload without a ceiling does, with at most maxConcurrent leases open on it at once; 0 pauses it, and null sets no ceiling.