DeferredGenerator to wake the loop when a callback is received