Latest 0.0.1
Homepage https://github.com/shenhai193/Async
License BSD3
Platforms osx , ios , tvos , watchos
Authors

Async

Async流程控制,支持oc链式语法
Syntactic sugar in Obj-C for asynchronous dispatches in Grand Central Dispatch

CocoaPods

platform :ios, '8.0'
pod 'OCAsync'

Usage

Chain as many blocks as you want:

#import <OCAsync/Async.h>

Async *async = [[Async alloc]init];

async.userInitiated(0, ^{    // 第一个参数是延时执行时间,单位秒
    // 1
}).main(0, ^{
    // 2
}).background(0, ^{
    // 3
}).main(0, ^ {
    // 4
});

Latest podspec

{
    "name": "OCAsync",
    "version": "0.0.1",
    "summary": "Async by oc, used chain.",
    "description": "Async by oc, used chain.nChain as many blocks as you want:nnAsync *async = [[Async alloc]init];nnasync.userInitiated(0, ^{n    // 1n}).main(0, ^{n    // 2n}).background(0, ^{n    // 3n}).main(0, ^ {n    // 4n});",
    "homepage": "https://github.com/shenhai193/Async",
    "license": "BSD3",
    "authors": {
        "shenhai": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shenhai193/Async.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "Classes",
        "Async.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This