public static < T > Callback < T > convertPromise ( final Reactor reactor , final Promise < T > promise ) { return convertPromiseToCallback ( promise , reactor . callbackBuilder ( ) ) ; }
Converts a Reakt promise into a QBit callback . Reactor is used to manage timeouts and ensure callback happens on same thread as caller .