pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

Callback execution model #317

Closed artem-zinnatullin closed 9 years ago

artem-zinnatullin commented 9 years ago

Currently, StorIO provides 2 execution models:

If somebody needs it -> please comment with "+1", so we will know that it should be implemented

Rainer-Lang commented 9 years ago

Im thinking to switch from an orm lib to storio - but I don't know what I need. Please add as much as you can, so storio-community and tester can grow.

Please explain executeAsBlocking() (transaction?) and what createObservable() will do. Thanks.

artem-zinnatullin commented 9 years ago

executeAsBlocking() will execute some operation as blocking synchonous call in current thread, it does not related to transactions (which are supported for group Put and Delete Operations).

createObservable() will create rx.Observable, it's part of RxJava project https://github.com/ReactiveX/RxJava

So at the moment StorIO supports two execution models: execution as blocking call and execution as rx.Observable, we can add callback-oriented execution model in future.

artem-zinnatullin commented 9 years ago

Closing for now, anybody interested in this — feel free to comment.