Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyAsyncCallInspection
/
ScheduleTask37
/
a.py
blob: a0d706df04412732481f5ce9a7d5c5f3982e19d6 [
file
]
import
asyncio
async
def
nested
():
print
(
"42"
)
async
def
main
():
# Schedule nested() to run soon concurrently with "main()".
asyncio
.
create_task
(
nested
())
await asyncio
.
sleep
(
3
)
asyncio
.
run
(
main
())