def notify_finish(self, state): return fiber.wrap_defer_ex(state.medium.notify_finish, debug_depth=2)
def notify_state(self, state, *states): return fiber.wrap_defer_ex(state.medium.wait_for_state, states, debug_depth=2)
def notify_finish(self, state): return fiber.wrap_defer_ex(state.medium.notify_finish, debug_depth=2)
def notify_state(self, state, *states): return fiber.wrap_defer_ex(state.medium.wait_for_state, states, debug_depth=2)