Requirements:
Must implement a queue data structure to hold messages to print. Guidelines should be as follows:
- The queue holds objects of lines to print.
- The first one gets kept in queue and always has the next message get printed out.
- When the queue object has a "completed" flag set, then it gets popped from the queue and then work on the next one begins.
- In this way a queue of queues will get implemented, to make sure that all rules where "printLog" is set to true get printed out in the correct order.
Once all queue messages are done, then execution has finished.
Requirements:
Must implement a queue data structure to hold messages to print. Guidelines should be as follows:
Once all queue messages are done, then execution has finished.