addTask

fun ProgressBarAnimation.addTask(definition: ProgressBarDefinition<Unit>, total: Long? = null, completed: Long = 0, start: Boolean = true, visible: Boolean = true): ProgressTask<Unit>

Add a new task to the progress bar with the given definition.