Add orc.waitForCallback to allow executors to wait for events