def sync_operation(self, op): '''Wait for an operation to be done or cancelled, then release it. Uses a busy-loop -- make sure a callback is registered to signal this listener.''' while pa.pa_operation_get_state(op) == pa.PA_OPERATION_RUNNING: pa.pa_threaded_mainloop_wait(self.threaded_mainloop) pa.pa_operation_unref(op)
def wait(self): '''Wait for a signal.''' pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
def wait(self): """Wait for a signal.""" pa.pa_threaded_mainloop_wait(self.threaded_mainloop)