@Test public void testFromFunc0Throws() { Func0<Integer> func = new Func0<Integer>() { @Override public Integer call() { throw new RuntimeException("Forced failure!"); } }; Observable<Integer> source = Async.fromFunc0(func, scheduler); testRunShouldThrow(source, RuntimeException.class); }
public static <R> OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function) { return new InvokeAsync<R>(function); }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function) { return new InvokeAsync<R>(function); } }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function) { return new InvokeAsync<R>(function); } private  OperationFromFunctionals(); }
OperationFromFunctionals { public static <R> OnSubscribeFunc<R> fromFunc0(Func0<? extends R> function) { return new InvokeAsync<R>(function); } 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> fromFunc0(Func0<? extends R> function) { return new InvokeAsync<R>(function); } 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);  }