Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 2.15 KB

File metadata and controls

37 lines (24 loc) · 2.15 KB

subkt / myaa.subkt.tasks / ItemGroup / batchItems

batchItems

fun batchItems(entries: Iterable<String>): List<T> (source)

Get all items corresponding to the specified entries.

mux.batchItems(listOf("01", "02", "03", "04")) // returns the mux.01, mux.02, mux.03, mux.04 tasks

Parameters

entries - A list of entries to get the items for.fun batchItems(entries: Provider<out Iterable<String>>): List<T> (source)

Get all items corresponding to the specified entries.

mux.batchItems(listOf("01", "02", "03", "04")) // returns the mux.01, mux.02, mux.03, mux.04 tasks

Parameters

entries - A provider for a list of entries to get the items for.fun batchItems(task: Task): List<T> (source)

Get all items corresponding to the episodes of the given task.

// assume batch vol1 contains episodes 01, 02, 03, and 04
tasks(listOf("vol1")) { // configure tasks for vol1 only
    mux {
        merge.batchItems(this) // returns merge.01, merge.02, merge.03, merge.04
    }
}