public static <T> io.advantageous.reakt.CallbackHandler<T> convertQBitCallback(final Callback<T> callback) {
        return result -> {

            if (result.failure()) {
                callback.onError(result.cause());
            } else {
                callback.accept(result.get());
            }
        };
    }
public static <T> io.advantageous.reakt.CallbackHandler<T> convertQBitCallback(final Callback<T> callback) {
        return result -> {

            if (result.failure()) {
                callback.onError(result.cause());
            } else {
                callback.accept(result.get());
            }
        };
    }
public static < T > io . advantageous . reakt . CallbackHandler < T > convertQBitCallback ( final Callback < T > callback ) { return result -> { if ( result . failure ( ) ) { callback . onError ( result . cause ( ) ) ; } else { callback . accept ( result . get ( ) ) ; } } ; }
Converts a Reakt callback into a QBit callback.

@param callback reakt callback
@param <T>      type of result
@return QBit callback
Converts a Reakt callback into a QBit callback .