Skip to content

Commit

Permalink
fix radiasoft/sirepo#7153: add pkasyncio.create_task (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
rorour authored Aug 6, 2024
1 parent 0d9d810 commit 49d5c46
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 49d5c46

Please sign in to comment.