public static final <T> AsyncResultImpl<T> create(Throwable t, Class<T> type) {
        return new AsyncResultImpl<>(t);
    }
Convenience method for creating an async result.
@param t the throwable
@param type the type
@return result of type T
gateway/engine/core/src/main/java/io/apiman/gateway/engine/async/AsyncResultImpl.java