This talk explains what is different in RxJava 2 from RxJava 1. There are 3 major changes - Reactive Streams compliant, Single/Maybe/Completable friendliness and performance improvement. From Reactive Streams point of view, it will describe how and why the changes are needed. In addition to that, the talk will describe how to migrate to RxJava 2 briefly.
第2回スタートアップAndroid勉強会 https://connpass.com/event/48090/
Nowadays, most Android developers are familiar with RxJava to build their own app. In most of the case, Observable and Single(or Flowable and Maybe in RxJava 2.X) is enough to build any app on Android. However, another (and some what inconspicuous)reactive class called Completable() might help you build a better app. I would like to write about a usage of Completable() and some points you have to
29 September 2016 – Droidcon (New York City, NY, USA) Development on the next major version of RxJava is underway. While the operators remain largely unchanged, Observable creation, subscription management, and backpressure has been completely overhauled in this new version. This talk will be an exploration on not only what has changed but also the reasons behind why these changes were made. We’ll
問題 まず、これから解決していく問題を先に述べます。 イベント(例えばOSの通知やBluetoothの状態)を受け取る部分がアプリ内に複数あり、各部分に関係がある時にのみその情報を受け取りたい場合を想像してみてください。 アプリの最初のクライアントが関心を持った時にのみイベントリスナーが登録され、誰も関心を持たなくなれば、すぐに登録を解除する必要がある。 新しいクライアントがイベントを購読する際、既存のクライアントに送信済みの前回のイベントを新しいクライアントがすぐに受け取れるようにして、全クライアントが常に同期するようにする。 今回の記事では、RxJavaの様々なコンポーネントを組み合わせることで、この問題を解決する道を探ろうと思います。本題に入る前に、 Subject や Replay 、そして Connectable Observables などのコンセプトを理解しておいてください。
本セッションでは、最近 Android アプリ開発で注目を浴びている Reactive Extension (Rx) と呼ばれる非同期処理を扱うライブラリについて簡単に説明し、さらに RxJava を例に、それをどのように実際の開発に活用していくかを解説します。 Rx はその考え方を理解するまでに時間がかかること、オペレータやコンセプトが多すぎて、どのように適切に使えば良いか分からないことから、学習コストが高いと言われています。本セッションでは、そのような Rx 初心者のために、Rx のコアとなる概念と併せて具体的な利用方法や効果的な学習法について説明いたします。 参考: - Reactive programming - Wikipedia, the free encyclopedia https://en.wikipedia.org/wiki/Reactive_programming -
若干の釣り気味ですが、RxJavaを利用されている方には結構重要そうだよな−と思う話題だったのでQiitaにまとめました。 ことのはじまり Check out the new fromAsync() operator for adapting callback-based sources into Observables. Stop using create()! https://t.co/3SvYMmgeWx — Jake Wharton (@JakeWharton) 2016年7月10日 なんだかJakeが過激なこと言ってる気配があったので、背景を調べるために少しissueを漁り始めました。 きっかけのissue https://github.com/ReactiveX/RxJava/issues/4177 すごく雑に3行でまとめると、 非Rxの世界の非同期処理をラップするのにObse
Programming deep-dive into RxJava, Reactive-Streams, Project Reactor and Java 9 Flow. Introduction If you are following the day-to-day RxJava GitHub activity, you might have noticed a PR about a new and mysterious rx.Completable class. This PR has been merged into the 1.x branch (in @Experimental fashion) and will most likely be part of RxJava 1.1.1. In this two part series, I'm first going to int
In this talk, I'm giving you 5 useful tips of RxJava you might not know. Reference - Subscriptions#empty() http://reactivex.io/RxJava/javadoc/rx/subscriptions/Subscriptions.html#empty() - SerialSubscription http://reactivex.io/RxJava/javadoc/rx/subscriptions/SerialSubscription.html - Observable#compose(Transformer) http://reactivex.io/RxJava/javadoc/rx/Observable.html#compose(rx.Observable.Transfo
新しく追加される予定のrx.Completableの紹介記事です。 TL;DR 1.1.1で入る予定。(最新は1.1.0) @Experimentalな機能なので、method名や仕様が変わる可能性がある。 Coldなやつで、Single<Void>に近いがonNextはない。 POST処理とかの際にObservable/Singleの代わりに使うと便利かも。 PullRequest Completable class for valueless event composition(#3439) 1.x向けのバックポート(#3444) (2.xの方は実装に難有りでまだmergeされてないです。) 詳細はPRを見て下さい。 議論の内容をざっくりまとめると、 "なにかの処理"の成功/失敗だけを伝えたい時はあるじゃん。(別に値を渡したくはない) Single<Void>だとonNext(null
Java 8: No more loops Java8のStream APIを使ってforループを無くすという記事。面白そうだったのでRxJava化しました。AndroidだとJava8 Stream API使えないですからね (´・ω・`)。Java8世界ではRxJavaってどういう位置づけなんでしょう気になります。 元記事と同じ様に、forループのあるコードとRxJavaでのコードを並べる形にします。Articleクラスについてはコチラには記載しないので元記事を見て下さい。シンプルなモデルなので見るまでもないかもしれません。 AndroidでのJava8環境構築は、 RxAndroidとRetrolambdaで大体Java8をAndroidに持ち込む - visible true を参照して下さい。 getFirstJavaArticle() タグにJavaを含む最初のArticleを
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く