Skip to content

Commit 49d5c46

Browse files
authored
fix radiasoft/sirepo#7153: add pkasyncio.create_task (#498)
1 parent 0d9d810 commit 49d5c46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pykern/pkasyncio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ async def _do():
7272
asyncio.run(_do(), debug=_cfg.debug)
7373

7474

75+
def create_task(coro):
76+
return asyncio.create_task(coro)
77+
78+
7579
async def sleep(secs):
7680
await asyncio.sleep(secs)
7781

0 commit comments

Comments
 (0)