Skip to content

Commit

Permalink
coros to lock per gevent
Browse files Browse the repository at this point in the history
Module has changed to `gevent.lock`
  • Loading branch information
ryan-WORK authored and cgoldberg committed May 3, 2019
1 parent a54bff7 commit 84ffbae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/semaphore_wait.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from locust import HttpLocust, TaskSet, task, events

from gevent.coros import Semaphore
from gevent.lock import Semaphore

all_locusts_spawned = Semaphore()
all_locusts_spawned.acquire()

Expand Down

0 comments on commit 84ffbae

Please sign in to comment.