MCPcopy Index your code
hub / github.com/ReactiveX/RxJavaAsyncUtil / toAsync

Method toAsync

src/main/java/rx/util/async/Async.java:90–92  ·  view source on GitHub ↗

Convert a synchronous action call into an asynchronous function call through an Observable. @param action the action to convert @return a function that returns an Observable that ex

(Action0 action)

Source from the content-addressed store, hash-verified

88 * @see <a href="http://msdn.microsoft.com/en-us/library/hh229868.aspx">MSDN: Observable.ToAsync</a>
89 */
90 public static Func0<Observable<Void>> toAsync(Action0 action) {
91 return toAsync(action, Schedulers.computation());
92 }
93
94 /**
95 * Convert a synchronous function call into an asynchronous function call through an Observable.

Callers 15

testAction0Method · 0.95
testAction0ErrorMethod · 0.95
testAction1Method · 0.95
testAction1ErrorMethod · 0.95
testAction2Method · 0.95
testAction2ErrorMethod · 0.95
testAction3Method · 0.95
testAction3ErrorMethod · 0.95
testAction4Method · 0.95
testAction4ErrorMethod · 0.95
testAction5Method · 0.95
testAction5ErrorMethod · 0.95

Calls

no outgoing calls

Tested by 15

testAction0Method · 0.76
testAction0ErrorMethod · 0.76
testAction1Method · 0.76
testAction1ErrorMethod · 0.76
testAction2Method · 0.76
testAction2ErrorMethod · 0.76
testAction3Method · 0.76
testAction3ErrorMethod · 0.76
testAction4Method · 0.76
testAction4ErrorMethod · 0.76
testAction5Method · 0.76
testAction5ErrorMethod · 0.76