Hello, Python!
I think it would be better to call asyncio.run()
function from Coroutine Instance.
async def func():
print('Hello')
# original
asyncio.run(func())
# idea
func().run()
I think this method better conveys the meaning of “calling a func function”
Although not exactly the same situation, Ray-Project executes parallel processing code in a similar way.
I’d like to hear your opinion.
PS - This is my first idea, and my mother tongue is not English, so it may seem rude. Please excuse.