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

Conversation

@brettfo
Copy link
Member

@brettfo brettfo commented Oct 9, 2019

Includes bringing more language agnostic tests in line.

let formattedValues = FormattedValue.FromObject(value)
context.Publish(ReturnValueProduced(value, codeSubmission, formattedValues))
| None -> ()
context.Complete()
Copy link
Contributor

Choose a reason for hiding this comment

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

@brettfo, is context.Complete() not needed when we match | Error?

Copy link
Contributor

Choose a reason for hiding this comment

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

It shouldn't be. This part of the API is hard to understand, though. Ideally (in a future, better version of this API) the context is completed automatically when the handler has exited and this method call should become implicit or unnecessary and go away. The more interesting case is when you want the event channel to remain alive after the handler has exited, e.g. publishing or streaming data back to the client.

@colombod colombod merged commit 95d56c7 into dotnet:master Oct 10, 2019
@brettfo brettfo deleted the fsharp-compile-error branch October 10, 2019 17:27
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.

4 participants