register

open fun register(@NonNull tasks: Array<Task>)

Register a series of tasks that can be executed at any time within the run methods.

This is required as the common Task structure instantiates new tasks for every action, therefore making it important to pre-register tasks you will use then referencing them in the future. This is automatically handled in the current applications of Task, as these actions are constructed at init.

You may wish to pass in a class member or new instantiations to this method, depending on how you will access them (either with an index, or using the instance itself as you may want to reset it)

Parameters

tasks

tasks to register for use within the run methods.