sseclient icon indicating copy to clipboard operation
sseclient copied to clipboard

Asyncronous events

Open andreafresa opened this issue 5 years ago • 2 comments

Hello, I have seen from your code that to parse the events from the server you are using a for loop. I guess that this mean that the program will lock the resource on the loop. Is there any possibility to use it in an asynchronous way? In this way I can consume the events once they arrive.

andreafresa avatar Jun 16 '20 13:06 andreafresa

Hello, I have seen from your code that to parse the events from the server you are using a for loop. I guess that this mean that the program will lock the resource on the loop. Is there any possibility to use it in an asynchronous way? In this way I can consume the events once they arrive.

Hello,

@andreafresa did you figure out if/how you can do this?

nick-antisoc avatar Nov 02 '21 14:11 nick-antisoc