sysid / sse-starlette

BSD 3-Clause "New" or "Revised" License
505 stars 36 forks source link

Replace asyncio.sleep() with anyio.sleep() #37

Closed uSpike closed 1 year ago

uSpike commented 1 year ago

This project uses anyio, which is proper since starlette began using it for concurrency some time ago. However, this project still contains calls to asyncio.sleep(). These calls should be replaced with anyio.sleep() so that users of the package can use it with Trio.

sysid commented 1 year ago

@uSpike , valid point. Thanks for bringing this up and creating a merge request!