Latest1.0.1
Homepagehttps://github.com/Meniny/Oath
LicenseMIT
Platformsios 8.0, osx 10.10, tvos 9.0, requires ARC




VersionAuthorBuild PassingSwift
PlatformsMIT
CocoapodsCarthageSPM

🏵 Introduction

Oath is a Promise / Future concept implementation for Swift developing.

Learn more about Promise.

📋 Requirements

  • iOS 8.0+
  • macOS 10.10+
  • tvOS 9.0+
  • Xcode 9.0+ with Swift 4.0+

📲 Installation

Oath is available on CocoaPods:

use_frameworks!
pod 'Oath'

❤️ Contribution

You are welcome to fork and submit pull requests.

🔖 License

Oath is open-sourced software, licensed under the MIT license.

💫 Usage

fetchUserInfo().then { info in
    print("User: (info)")
}.onError { e in
    print("An error occured : (e)")
}.finally {
    print("Everything is done <3")
}
func fetchUserInfo() -> Promise<String> {
    return Promise { resolve, reject in
        print("fetching user info...")
        wait { resolve("Elias") }
    }
}

Latest podspec

{
    "name": "Oath",
    "module_name": "Oath",
    "authors": "Elias Abel",
    "version": "1.0.1",
    "summary": "Promise / Future concept implementation for Swift developing.",
    "description": "Promise / Future concept implementation for Swift developing makes async code readable by a human being.",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "source": {
        "git": "https://github.com/Meniny/Oath.git",
        "tag": "1.0.1"
    },
    "homepage": "https://github.com/Meniny/Oath",
    "social_media_url": "https://meniny.cn/",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0"
    },
    "swift_version": "4.1",
    "requires_arc": true,
    "source_files": "Oath/*.swift"
}

Pin It on Pinterest

Share This