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
// | |
// MILog.h | |
// | |
// Copyright (c) 2014 Marcin Iwanicki | |
// | |
/** | |
// example: | |
#define HTTP_CLIENT_LOGGER true | |
#define DAO_LOGGER false |
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
// | |
// Created by Marcin Iwanicki on 10/07/2018. | |
// Copyright © 2018 Marcin Iwanicki. All rights reserved. | |
// | |
import XCTest | |
// ----------------------------------------------------------------------------- | |
// Tests | |
// ----------------------------------------------------------------------------- |
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 | |
public class ConcurrentQueueExecutor<T> { | |
private let serialQueue = DispatchQueue(label: "SerialQueue") | |
private let concurrentQueue = DispatchQueue(label: "ConcurrentQueue", attributes: .concurrent) | |
private let context: ExecutorContext | |
public init() { | |
context = ExecutorContext(serialQueue: serialQueue) |