wait_for() decorator, replacing wait_for_reactor().