MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / task

Function task

tests/unittest/llmapi/test_executor.py:344–351  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 total = 0
343
344 async def task():
345 print(f"running task")
346 for i in range(10):
347 print(f"waiting for msg")
348 msg = await pull_pipe.get_async()
349 print(f"received: {msg}")
350 nonlocal total
351 total += msg
352
353 print(f"to run task")
354 asyncio.run(task())

Calls 1

get_asyncMethod · 0.80

Tested by

no test coverage detected