Skip to content

Instantly share code, notes, and snippets.

Branko thebrankoo

Block or report user

Report or block thebrankoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thebrankoo
thebrankoo / TBAsyncOperation.swift
Last active Jun 14, 2016
Simple custom NSOperation subclass that handles piece of work with completion block
View TBAsyncOperation.swift
import UIKit
typealias TBAsyncBlock = (completionHandler: dispatch_block_t ) -> Void
class TBAsyncOperation: NSOperation {
private var block : TBAsyncBlock!
private var _executing : Bool = false
override var executing : Bool {
You can’t perform that action at this time.