Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block nicegoing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andych008 / entity可用性常规则检查
Last active Jul 15, 2016
View entity可用性常规则检查
* entity可用性常规则检查
public static <T> Observable.Transformer<BaseEntity<T>, T> check() {
return new Observable.Transformer<BaseEntity<T>, T>() {
public Observable<T> call(Observable<BaseEntity<T>> observable) {
return observable.flatMap(new Func1<BaseEntity<T>, Observable<T>>() {
View 1显示并隐藏
* 显示并隐藏loading
public static <T> Observable.Transformer<T, T> showLoading(final ILoading loading) {
return new Observable.Transformer<T, T>() {
public Observable<T> call(Observable<T> observable) {
return observable
.doOnSubscribe(new Action0() {
staltz /
Last active Nov 17, 2019
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.