Skip to content

Conversation

Raffa50
Copy link

@Raffa50 Raffa50 commented Dec 12, 2018

Optional progress can be very useful (instead of passing an empty one: new Progress( JSONMessage _ => {}) )

@@ -45,7 +45,8 @@ internal static async Task MonitorStreamForMessagesAsync<T>(Task<Stream> streamT
var prog = client.JsonSerializer.DeserializeObject<T>(line);
if (prog == null) continue;

progress.Report(prog);
if(progress!= null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than this we should just have the call to monitor split so we don't call monitor if we don't have a progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants