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
Since my use case of EventSource is pretty anectdotical, I would suggest to turn this issue into a more global one like "Provide suspending function and Flow based extensions on top of Web APIs".
The more I use Kotlin/JS, the more I think you could do for frontend what you did on Android with carefully crafted Kotlin extensions on top of Web APIs.
Even if in the case of waiting for window loading, cancellation is unlikely at this point, it might help some coroutines being cancelled earlier if the case applies.
Activity
qwwdfsad commentedon Oct 24, 2019
Open questions:
EventSource
?sdeleuze commentedon Oct 24, 2019
I will think about those questions.
Since my use case of
EventSource
is pretty anectdotical, I would suggest to turn this issue into a more global one like "Provide suspending function and Flow based extensions on top of Web APIs".The more I use Kotlin/JS, the more I think you could do for frontend what you did on Android with carefully crafted Kotlin extensions on top of Web APIs.
sdeleuze commentedon Oct 24, 2019
Another example using suspending functions:
LouisCAD commentedon Oct 24, 2019
I'd prefer to support cancellation:
LouisCAD commentedon Oct 24, 2019
Even if in the case of waiting for window loading, cancellation is unlikely at this point, it might help some coroutines being cancelled earlier if the case applies.