MCPcopy Index your code
hub / github.com/RustPython/RustPython / create

Method create

Lib/test/test_asyncio/test_tasks.py:2393–2399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2391
2392 fut = self.new_future(loop)
2393 async def create():
2394 # The indirection fut->child_coro is needed since otherwise the
2395 # gathering task is done at the same time as the child future
2396 async def child_coro():
2397 return await fut
2398 gather_future = asyncio.gather(child_coro())
2399 return asyncio.ensure_future(gather_future)
2400 gather_task = loop.run_until_complete(create())
2401
2402 cancel_result = None

Callers 6

run_with_own_gilMethod · 0.45
run_with_shared_gilMethod · 0.45
add_subinterpreterMethod · 0.45
createFunction · 0.45
__init__Method · 0.45

Calls 1

gatherMethod · 0.45

Tested by

no test coverage detected