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 .