Skip to content

Instantly share code, notes, and snippets.

@amw
amw / dispatch.swift
Last active Nov 4, 2016
Swift wrapper for Grand Central Dispatch (GCD)
View dispatch.swift
//
// dispatch.swift
//
// Created by Adam Wróbel. Read more at:
// http://adamwrobel.com/blog/2016/05/08/swift-gcd-wrapper/
//
import Foundation
internal extension dispatch_queue_t {
@Inferis
Inferis / ViewController.swift
Last active Dec 1, 2019
Beginnings of a GCD wrapper in swift
View ViewController.swift
import UIKit
import QuartzCore
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel
@IBOutlet weak var counter: UILabel
override func viewDidLoad() {
super.viewDidLoad()
You can’t perform that action at this time.