Skip to content
safely `forced()` to get to the BrightFutures.Future values
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
JetToTheFuture
.gitattributes
.gitignore
.swift-version
.travis.yml
Cartfile
Gemfile
Gemfile.lock
JetToTheFuture.podspec
LICENSE
Package.resolved
Package.swift
README.md
_Pods.xcodeproj

README.md

JetToTheFuture

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.

You can’t perform that action at this time.