Skip to content
yashiganiPublic

About

Promise.swift - A Promise implementation written in Swift

Resources

Stars

11 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

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

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages