@Override public void onStart() { super.onStart(); if (showDialog) { try { LoadingDialog.showDialogForLoading((Activity) mContext,msg,true); } catch (Exception e) { e.printStackTrace(); } } }
@Override public void call( final Subscriber<? super T> subscriber ) { try { subscriber.onStart(); //get our iterator and push data to the observer final Iterator<T> itr = getIterator(); Preconditions.checkNotNull( itr, "The observable must return an iterator. Null was returned for iterator " + name ); //while we have items to emit and our subscriber is subscribed, we want to keep emitting items while ( itr.hasNext() && !subscriber.isUnsubscribed() ) { final T next = itr.next(); if (logger.isTraceEnabled()) logger.trace( "Iterator '{}' emitting item '{}'", name, next ); subscriber.onNext( next ); } subscriber.onCompleted(); } //if any error occurs, we need to notify the observer so it can perform it's own error handling catch ( Throwable t ) { subscriber.onError( t ); } }
@Override public void call( final Subscriber<? super ConnectionScope> subscriber ) { final ApplicationScope applicationScope = new ApplicationScopeImpl( createId( "application" ) ); final Edge edge = CpNamingUtils.createConnectionEdge( createId( "source" ), "test", createId( "target" ) ); final ConnectionScope scope = new ConnectionScope( applicationScope, edge ); subscriber.onStart(); for ( int i = 0; i < count; i++ ) { subscriber.onNext( scope ); } subscriber.onCompleted(); } }
subscriber.onStart();
@Override public void onStart() { super.onStart(); child.add(go.subscribe(new Action1<Boolean>() { @Override public void call(Boolean open) { isOpen = open; tick(cache); } })); child.add(this); }
@Override public void onStart() { super.onStart(); }
@Override public void onStart() { super.onStart(); }
@Override public void onStart() { super.onStart(); }
@Override public void onStart() { super.onStart(); }
@Override public void onStart() { super.onStart(); if (showDialog) { try { LoadingDialog.showDialogForLoading((Activity) mContext,msg,true); } catch (Exception e) { e.printStackTrace(); } } }
/** * 订阅开始时调用 * 显示ProgressDialog */ @Override public void onStart() { super.onStart(); showProgressDialog(); }
@Override public void onStart() { super.onStart(); /** * 初始化pdLoading */ pdLoading = new ProgressDialog(context); pdLoading.setProgressStyle(ProgressDialog.STYLE_SPINNER); pdLoading.setMessage("请稍后"); pdLoading.setCanceledOnTouchOutside(false); pdLoading.setCancelable(true); }
@Override public void onStart() { super.onStart(); AppLog.d(this + "....onStart"); }
@Override public void onStart() { super.onStart(); onPrepare(); }
/** * 订阅开始时调用 * 显示ProgressDialog */ @Override public void onStart() { super.onStart(); showProgressDialog(); }
/** * 订阅开始时调用 * 显示ProgressDialog */ @Override public void onStart() { super.onStart(); showProgressDialog(); }
@Override public void onStart() { super.onStart(); if (downLoadCallBack.get() != null) { downLoadCallBack.get().onStart(); } mDownInfo.setDownLoadStatus(DownState.START.getState()); }
@Override public void onStart() { super.onStart(); if (downLoadCallBack.get() != null) { downLoadCallBack.get().onStart(); } mDownInfo.setDownLoadStatus(DownState.START.getState()); }
@CallSuper @Override public void onStart() { super.onStart(); if (mRequestCallback != null) { mRequestCallback.beforeRequest(); } }
@Override public void call(Subscriber<? super R> o) { try { Subscriber<? super T> st = hook.onLift(lift).call(o); // new Subscriber created and being subscribed with so 'onStart' it st.onStart(); onSubscribe.call(st); } catch (Throwable e) { // localized capture of errors rather than it skipping all operators // and ending up in the try/catch of the subscribe method which then // prevents onErrorResumeNext and other similar approaches to error handling if (e instanceof OnErrorNotImplementedException) { throw (OnErrorNotImplementedException) e; } o.onError(e); } } });