Task Queue
Queue
is the central component of Ziva that manages sequential task execution and provides a unified interface for user interaction.
Creating a Queue

Main Methods
Adding Tasks
Running the Queue
Display Configuration
Application Name
Name and Title Colors
Task Numbering
Summary Management
Screen Clearing
Error Management
Error Color Configuration
Configuration Examples
Minimal Configuration
Full Configuration
Embedded Systems Configuration
Queue Lifecycle
- Creation -
NewQueue(title)
- Configuration -
With*
method calls - Task Addition -
AddTasks(...)
- Execution -
Run()
State Handling
Successful Execution
When all tasks complete successfully,Run()
returns nil
.
User Cancellation
If the user cancels execution (Ctrl+C), the queue terminates gracefully.Execution Errors
Performance Optimization
For Large Queues
For Slow Terminals
Tip: Experiment with different settings to achieve optimal user experience in your specific environment.
See Also
- Task Types - overview of all available tasks
- Styling - appearance customization
- Embedded Systems - IoT optimization