subkt / myaa.subkt.tasks / TaskCreator
class TaskCreator<T : Task> (source)
Delegate for creation of tasks using property delegate syntax. See ItemGroupContext.task.
| Name | Summary |
|---|---|
| WrapperDelegate | class WrapperDelegate<T>Delegate which always returns the constant item. |
| 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. |
| Name | Summary |
|---|---|
| context | val context: ItemGroupContextThe 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. |
| Name | Summary |
|---|---|
| provideDelegate | operator fun provideDelegate(receiver: Any?, prop: KProperty<*>): TaskCreator.WrapperDelegate<TaskGroup<T>> |