Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.63 KB

File metadata and controls

19 lines (11 loc) · 1.63 KB

subkt / myaa.subkt.tasks / TaskGroup / createItem

createItem

protected fun createItem(entry: String, isBatch: Boolean, episodes: List<String>): TaskProvider<T> (source)

Overrides ItemGroup.createItem

Registers a new task for the given entry, or returns an existing task if it exists. The returned task will following the naming scheme name.[entry](create-item.md#myaa.subkt.tasks.TaskGroup$createItem(kotlin.String, kotlin.Boolean, kotlin.collections.List((kotlin.String)))/entry).

Parameters

entry - The entry for this task, i.e. the episode or the batch identifier.

isBatch - True if this corresponds to a batch task.

episodes - The episodes that correspond to this entry. Usually a single-element list containing [entry](create-item.md#myaa.subkt.tasks.TaskGroup$createItem(kotlin.String, kotlin.Boolean, kotlin.collections.List((kotlin.String)))/entry) if [isBatch](create-item.md#myaa.subkt.tasks.TaskGroup$createItem(kotlin.String, kotlin.Boolean, kotlin.collections.List((kotlin.String)))/isBatch) is false.