Conversation
|
@microsoft-github-policy-service agree company="Klippa App B.V." |
lilyydu
left a comment
There was a problem hiding this comment.
Thank you for filing this!
|
looks like the build is failing, could you also run |
Yeah I wanted to setup pre-commit, but I couldn't get it to install, had some issues with the |
lilyydu
left a comment
There was a problem hiding this comment.
LGTM! @heyitsaamir do you mind taking a look?
|
I like the approach here. Soemthings I think we should do:
I'm leaning toward throwing on emit. Thoughts? |
What do you mean? It already is.
I'd like the second approach more. Perhaps something using Edit: |
Oops you're right. Ignore 1st. @jerbob92 why do you prefer second? I think your |
Personally I think an event based approach is cleaner, but maybe that would only really make sense if the cancelation may happen without the user doing emits, for that to work the Streamer would either need an endpoint to check for cancelation every x duration or it needs to be an actual HTTP stream. (or maybe I just didn't really get your comment and you're talking about something that's not directly related to the MR) |
+1 with Aamir — throwing on emit seems like the right approach. I think event-based only adds value if cancellation happens between emits |
|
Yeah event emitter is less useful here because it would catch the errors asynchronously (out of band), so coordinating it back with where you're emitting in application code will be difficult. |
Fixes #332