commit
0bae54e208
|
@ -673,7 +673,7 @@ coroutines::
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def useful():
|
def useful():
|
||||||
asyncio.sleep(1) # this will do noting without 'yield from'
|
asyncio.sleep(1) # this will do nothing without 'yield from'
|
||||||
|
|
||||||
For debugging this kind of mistakes there is a special debug mode in
|
For debugging this kind of mistakes there is a special debug mode in
|
||||||
asyncio, in which ``@coroutine`` decorator wraps all functions with a
|
asyncio, in which ``@coroutine`` decorator wraps all functions with a
|
||||||
|
|
Loading…
Reference in New Issue