这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@rchande
Copy link

@rchande rchande commented Jul 24, 2019

No description provided.


var kernelCommand = new SubmitCode(@"
Console.Write(DateTime.Now);
System.Threading.Thread.Sleep(1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Using a custom scheduler, we wouldn't need an actual Thread.Sleep and the test can run faster.

}
}

private void PublishOutput(string std, KernelInvocationContext context, IKernelCommand command)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is std?

internal class TrackingStringWriter : StringWriter
internal class TrackingStringWriter : StringWriter, IObservable<string>
{
Subject<string> WriteEvents = new Subject<string>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please specify private.

public int Length { get; set; }
}

readonly List<Region> _regions = new List<Region>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

{
new FormattedValue(
Formatter.MimeTypeFor(std?.GetType() ?? typeof(object)), std)
Formatter.MimeTypeFor(output?.GetType() ?? typeof(object)), output)
Copy link
Contributor

Choose a reason for hiding this comment

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

Or Formatter.MimeTypeFor(typeof(string))?

@rchande rchande changed the title wip: async output async output Jul 24, 2019
@colombod colombod merged commit 013f178 into dotnet:master Jul 25, 2019
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.

3 participants