Skip to content

Promise.swift - A Promise implementation written in Swift

License

Notifications You must be signed in to change notification settings

yashigani/Promise

Repository files navigation

Promise.swift

Promise.swift - A Promise implementation written in Swift

===

Usage

Promise.resolve(10)
       .then(increment)
       .then(doubleUp)
       .`catch` { _ in print("error!") }
       .then { v in
           print(p) // 22
       }

Licence

MIT

Author

@yashigani

About

Promise.swift - A Promise implementation written in Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published