CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

MiniDispatch 1.0.2

MiniDispatch 1.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2016
SPMSupports SPM

Maintained by Yonat Sharon.



MiniDispatch

Minimal GCD convenience layer. Dispatch succinctly.

Usage

dispatch after 3 seconds:

delay (3) {
    messageView.hidden = true
}

dispatch to main thread:

async_main {
    label.text = "new title"
}

do on main thread:

sync_main {
    try { managedObjectContext.executeFetchRequest(fetchRequest) }
    // ...
}

Installation

Just add MiniDispatch.swift to your project.

Using CocoaPods:

pod 'MiniDispatch'