Upgrade to Pro — share decks privately, control downloads, hide ads and more …

State, Promises, and Reactive Programming (w/ Y...

Avatar for Realm Realm
June 05, 2015

State, Promises, and Reactive Programming (w/ Yasuhiro Inami of LINE & ReactKit)

Promises are a well-known design pattern used to delay evaluation of future values, and to pipeline operations in an asynchronous manner. Typically, there are three internal states: Pending, Fulfilled, Rejected, used to control Promises’ behavior, but this lacks core interfaces such as Cancel, Pause, Resume, Progress, that are all essential in our daily iOS & OS X development. Needing more powerful classes than Promise or NSOperation, SwiftTask was created, and entirely written in Swift.

By taking a closer look into SwiftTask's resume/progress handling, we will explore a new approach to the Reactive Programming paradigm. Every Task will eventually become a Stream.

Avatar for Realm

Realm

June 05, 2015
Tweet

More Decks by Realm

Other Decks in Programming

Transcript

  1. Realm is a mobile database: a replacement for SQLite &

    Core Data learn more at github.com/realm wifi: realm / piedpiper