Skip to content

safely `forced()` to get to the BrightFutures.Future values

License

Notifications You must be signed in to change notification settings

ldelosheros/JetToTheFuture

 
 

Repository files navigation

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.

About

safely `forced()` to get to the BrightFutures.Future values

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 71.9%
  • Ruby 28.1%