This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
/// Subclass this Class with a non generic Type. | |
/// - note: Please override the init function with a private | |
/// access modifactor and create a singleton, so you | |
/// can ensure that there are no more Queues as you | |
/// are expecting. | |
internal class QueueHandler<T> { | |
private var queues: Set<Queue<T>> | |
/// Checks if any Queue contains an Element waiting for execution. |