What's the difference between "async with lock" and "with await lock"?

The second form has been deprecated since Python 3.7 with await lockand 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

 

 

 

 

Guess you like

Origin blog.csdn.net/m0_54219225/article/details/121508225