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

1fa9cb8c7997c8c4d3d251fb5e41f749?s=47 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.

1fa9cb8c7997c8c4d3d251fb5e41f749?s=128

Realm

June 05, 2015
Tweet