This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twbt4f
Recipients asvetlov, twbt4f, yselivanov
Date 2021-05-31.07:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622447968.51.0.0787409355185.issue44271@roundup.psfhosted.org>
In-reply-to
Content
import asyncio
import timeit

num = 0


async def test():
    global num
    num += 1
    print(f"done task {num}")
    return f"task: {num}"


async def main():
    task = asyncio.create_task(test())

    # ko = await test()
    # print(await task, ko)


if __name__ == '__main__':
    number = 1000000
    while number:
        number -= 1
        asyncio.run(main())
    print("are you ok")
    # time_stage = timeit.timeit("asyncio.run(main())", globals=globals(), number=100000)
    # print(time_stage)
History
Date User Action Args
2021-05-31 07:59:28twbt4fsetrecipients: + twbt4f, asvetlov, yselivanov
2021-05-31 07:59:28twbt4fsetmessageid: <1622447968.51.0.0787409355185.issue44271@roundup.psfhosted.org>
2021-05-31 07:59:28twbt4flinkissue44271 messages
2021-05-31 07:59:28twbt4fcreate