You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All examples feature a simple use case with frequent yields with asyncio.sleep() delay between them. Is there any way I can yield a message on demand?
My use case is to send sporadic messages which can be hours or seconds apart from each other, so spinning up an endless loop which would fetch messages every 100 ms would be a waste of resources. Is there any way I can avoid doing that?
Thank you for your work, awesome module.
The text was updated successfully, but these errors were encountered:
@arseniiarsenii, interesting question. There is no reason not to have sporadic yields only as long as you make sure the connection does not die (heartbeats). From a sse-starlette perspective I do not see any limitations.
All examples feature a simple use case with frequent yields with
asyncio.sleep()
delay between them. Is there any way I can yield a message on demand?My use case is to send sporadic messages which can be hours or seconds apart from each other, so spinning up an endless loop which would fetch messages every 100 ms would be a waste of resources. Is there any way I can avoid doing that?
Thank you for your work, awesome module.
The text was updated successfully, but these errors were encountered: