Group

The scope inside group: declares the group's children, and may give it a template for attached ones.

Functions

Link copied to clipboard
fun group(name: String, weight: Weight = Weight.ONE, block: TopologyDraft.Group.() -> Unit)

Declares a group named name with weight among its siblings, whose children block declares.

fun group(name: String, weight: Weight = Weight.ONE, maxConcurrent: Long?, block: TopologyDraft.Group.() -> Unit)

Declares a group as the overload without a ceiling does, with at most maxConcurrent leases open beneath it at once, counted across all its children; 0 pauses it, and null sets no ceiling.

Link copied to clipboard
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.

Link copied to clipboard
fun template(weight: Weight = Weight.ONE, maxConcurrent: Long? = null, @IntroducedAt(version = "0.7.7") template: Topology.ChildTemplate? = null)

Gives this group a template for the children the app attaches while running, each with weight and at most maxConcurrent leases open on it at once (null for no ceiling): the ceiling caps each child on its own, not all of them together. A group with a template may declare no children of its own. Call it at most once per group: a group has one template.