summaryrefslogtreecommitdiff
path: root/extmod/uasyncio/lock.py
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/uasyncio/lock.py')
-rw-r--r--extmod/uasyncio/lock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/uasyncio/lock.py b/extmod/uasyncio/lock.py
index f50213d7c..4dae36bc2 100644
--- a/extmod/uasyncio/lock.py
+++ b/extmod/uasyncio/lock.py
@@ -28,7 +28,8 @@ class Lock:
# No Task waiting so unlock
self.state = 0
- async def acquire(self):
+ # async
+ def acquire(self):
if self.state != 0:
# Lock unavailable, put the calling Task on the waiting queue
self.waiting.push(core.cur_task)