public <T> Callback<T> callback(final Consumer<Promise<T>> promiseConsumer) {
        Promise<T> promise = Promises.promise();
        promiseConsumer.accept(promise);
        return Reakt.convertPromise(promise);
    }
public <T> Callback<T> callback(final Consumer<Promise<T>> promiseConsumer) {
        Promise<T> promise = Promises.promise();
        promiseConsumer.accept(promise);
        return Reakt.convertPromise(promise);
    }
public < T > Callback < T > callback ( final Consumer < Promise < T > > promiseConsumer ) { Promise < T > promise = Promises . promise ( ) ; promiseConsumer . accept ( promise ) ; return Reakt . convertPromise ( promise ) ; }
Creates a QBit callback based on promise created.

@param promiseConsumer promise consumer
@param <T>             T
@return QBit callback
Creates a QBit callback based on promise created .