From 61fe370e8666f3f1274cb75615ddc5e128ce05e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20S=C3=A1nchez?= Date: Thu, 30 Jun 2016 15:48:40 +0100 Subject: [PATCH] Makes queue status accessible out of the framework (#169) --- Chatto/Source/SerialTaskQueue.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() {}