Latest 0.4.0-beta.1
Homepage https://github.com/banjun/JetToTheFuture
License MIT
Platforms ios 9.0, osx 10.11
Dependencies BrightFutures
Authors

CI Status
Version
License
Platform

JetToTheFuture provides safe forced() to get to the BrightFutures.Future values on the main thread.

Its usecase is mainly for command-line scripts and testcases, not for apps because forced() is potentially unsafe on main thread.

Usage

see testcases.

for command-line swift script:

let r = forcedFuture {methodThatReturnFuture()}
print("(r)")
// no need to run RunLoop to wait at the end of the script

Installation

JetToTheFuture is available through CocoaPods.

pod "JetToTheFuture"

License

JetToTheFuture is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JetToTheFuture",
    "version": "0.4.0-beta.1",
    "summary": "safely `forced()` to get to the BrightFutures.Future values",
    "description": "brings forced future block to safely `forced()` just on the main thread.nits usecase is mainly for command-line and testcases",
    "homepage": "https://github.com/banjun/JetToTheFuture",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "banjun": "[email protected]"
    },
    "source": {
        "git": "https://github.com/banjun/JetToTheFuture.git",
        "tag": "0.4.0-beta.1"
    },
    "social_media_url": "https://twitter.com/banjun",
    "platforms": {
        "ios": "9.0",
        "osx": "10.11"
    },
    "source_files": "JetToTheFuture/Classes/**/*",
    "dependencies": {
        "BrightFutures": [
            ">= 6.0.0-beta.1"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This