MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/ext/asyncio/test_engine.py:294–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 errs = []
293
294 def go():
295 async def main():
296 tasks = [task() for _ in range(2)]
297
298 await asyncio.gather(*tasks)
299 await engine.dispose()
300
301 async def task():
302 async with engine.begin() as connection:
303 result = await connection.execute(select(1))
304 result.all()
305
306 try:
307 engine = engines.testing_engine(asyncio=True)
308
309 asyncio.run(main())
310 except Exception as err:
311 errs.append(err)
312
313 t = threading.Thread(target=go)
314 t.start()

Callers

nothing calls this directly

Calls 11

selectFunction · 0.90
eq_Function · 0.90
testing_engineMethod · 0.80
get_raw_connectionMethod · 0.80
mainFunction · 0.50
runMethod · 0.45
appendMethod · 0.45
connectMethod · 0.45
beginMethod · 0.45
executeMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected