jooby/src/main/java/org/jooby/Deferred.java
@Override
  @Nonnull
  public Result set(final Object value) {
    if (value instanceof Throwable) {
      reject((Throwable) value);
    } else {
      resolve(value);
    }
    return this;
  }
@Override
  @Nonnull
  public Result set(final Object value) {
    if (value instanceof Throwable) {
      reject((Throwable) value);
    } else {
      resolve(value);
    }
    return this;
  }
{@link #resolve(Object)} or {@link #reject(Throwable)} the given value.

@param value Resolved value.