async def test_func(dut): print("test_func") t1 = tblink.fork(task()) t2 = tblink.fork(task()) await asyncio.gather(t1, t2)
def start(self): print("Sim.start", flush=True) tblink.fork(self.run())
async def test_func(dut): print("test_func") t = tblink.fork(task()) await t
def start(self): print("TB.start", flush=True) tblink.fork(self.run()) # asyncio.ensure_future(self.run()) pass