TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2016 |
Maintained by Tanner Bennett.
NSDispatch is an Objective-C wrapper for libispatch. NSDispatch's class and method names are based off of the official Apple implementation of libdispatch for Swift 3, and use Objective-C and Cocoa API naming conventions.
NSDispatch is forked from GCDObjC, who's four main aims are to:
NSDispatch requires ARC. NSDispatch.h
is the only header file that needs to be imported. For usage examples, see NSDispatchTests.m
.
To install NSDispatch via CocoaPods:
pod 'NSDispatch'
to your podfile.cd /your-project-directory/
and type pod install
..workspace
file that CocoaPods generates when working on your project from this point on.This project uses the NS
namespace for it's classes. Typically this namespace is typically reserved for Apple classes in Objective-C. However, the only point of this fun and quick little prtoject was to look, read, and behave as if it was an Apple created library for concurency. Changing the namespace to anything but NS
would defeat the purpose of the project.
It is very unlikely that Apple will ever make any classes using the designator NSDispatch
, however if you are concerned about future compatibility because of something Apple might change then you should do one of the following things:
libdispatch
Objective-C wrappers avaliable.On the off chance than Apple ever does make an NSDispatch
class/library, I will immediately deprecate this project.
This code is provided as-is. Include it in your own projects at your own risk.