def step_actor(self, actor):
# Pretend that the current greenlet is the Actor to bypass
# actor_message's asserts.
with mock.patch.object(actor, "greenlet"):
actor.greenlet = gevent.getcurrent()
while actor._event_queue:
actor._step()
评论列表
文章目录