Skip to content

Commit

Permalink
fix radiasoft/sirepo#7153: add pkasyncio.create_task
Browse files Browse the repository at this point in the history
  • Loading branch information
rorour committed Aug 2, 2024
1 parent c150211 commit 8295679
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pykern/pkasyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ async def _do():
asyncio.run(_do(), debug=_cfg.debug)


def create_task(coro):
return asyncio.create_task(coro)


async def sleep(secs):
await asyncio.sleep(secs)

Expand Down

0 comments on commit 8295679

Please sign in to comment.