Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 2.15 KB

File metadata and controls

34 lines (23 loc) · 2.15 KB

subkt / myaa.subkt.tasks / TaskCreator

TaskCreator

class TaskCreator<T : Task> (source)

Delegate for creation of tasks using property delegate syntax. See ItemGroupContext.task.

Types

Name Summary
WrapperDelegate class WrapperDelegate<T>
Delegate which always returns the constant item.

Constructors

Name Summary
<init> TaskCreator(context: ItemGroupContext, klass: KClass<T>, initAction: (T.() -> Unit)? = null)
Delegate for creation of tasks using property delegate syntax. See ItemGroupContext.task.

Properties

Name Summary
context val context: ItemGroupContext
The context this delegate belongs to.
initAction val initAction: (T.() -> Unit)?
An optional closure for configuring the task.
klass val klass: KClass<T>
The type of the task to create.

Functions

Name Summary
provideDelegate operator fun provideDelegate(receiver: Any?, prop: KProperty<*>): TaskCreator.WrapperDelegate<TaskGroup<T>>