@Test public void testFromCallableThrows() { Callable<Integer> callable = new Callable<Integer>() { @Override public Integer call() throws Exception { throw new IOException("Forced failure!"); } }; Observable<Integer> source = Async.fromCallable(callable, scheduler); testRunShouldThrow(source, IOException.class); }
public static <R> OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable) { return new InvokeAsyncCallable<R>(callable); }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable) { return new InvokeAsyncCallable<R>(callable); } }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable) { return new InvokeAsyncCallable<R>(callable); } private  OperationFromFunctionals(); }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable) { return new InvokeAsyncCallable<R>(callable); } private  OperationFromFunctionals(); static OnSubscribeFunc<R> fromAction(Action0 action, R result); static OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function); static OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable); static OnSubscribeFunc<R> fromRunnable(final Runnable run, final R result); }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable) { return new InvokeAsyncCallable<R>(callable); } private  OperationFromFunctionals(); static OnSubscribeFunc<R> fromAction(Action0 action, R result); static OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function); static OnSubscribeFunc<R> fromCallable(Callable<? extends R> callable); static OnSubscribeFunc<R> fromRunnable(final Runnable run, final R result);  }