code: public static <R> OnSubscribe<R> fromAction(Action0 action, R result) {
          return new InvokeAsync<R>(Actions.toFunc(action, result));
      }
docs: Subscriber function that invokes an action and returns the given result.