The second form has been deprecated since Python 3.7 with await lock
and has been removed in Python 3.9.
Running it with Python 3.7 gives the following warning:
DeprecationWarning: 'with await lock' is deprecated use 'async with lock' instead
The second form has been deprecated since Python 3.7 with await lock
and has been removed in Python 3.9.
Running it with Python 3.7 gives the following warning:
DeprecationWarning: 'with await lock' is deprecated use 'async with lock' instead