diff --git a/Chatto/Source/SerialTaskQueue.swift b/Chatto/Source/SerialTaskQueue.swift index 95db7f6..e71c877 100644 --- a/Chatto/Source/SerialTaskQueue.swift +++ b/Chatto/Source/SerialTaskQueue.swift @@ -32,11 +32,13 @@ public protocol SerialTaskQueueProtocol { func stop() func flushQueue() var isEmpty: Bool { get } + var isStopped: Bool { get } } public final class SerialTaskQueue: SerialTaskQueueProtocol { - private var isBusy = false - private var isStopped = true + public private(set) var isBusy = false + public private(set) var isStopped = true + private var tasksQueue = [TaskClosure]() public init() {}