Replies: 2 comments 3 replies
-
@KevinRansom what would be the proper way of doing that? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I created a pull request to enable this #14546 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to cancel FSI interactions in net7 ?
The new internal ControlledExecution.fs class seems to work well in VS for cancelling.
But I have not found a public member that exposes it to the FCS.
The cancelation token passed in via
fsiSession.EvalInteraction(code,token)
only seems to reach till here:fsharp/src/Compiler/Interactive/fsi.fs
Line 2937 in ad65b81
I could not use it successfully.
Does it reach all the way to ControlledExecution.fs ? This class seems to have its own token. TryAbort:
fsharp/src/Compiler/Interactive/ControlledExecution.fs
Line 49 in ad65b81
I also tried to run my own ControlledExecution Class
but got the message
Compiler Error:input.fsx (1,1)-(1,1) interactive error internal error: The thread is already executing the ControlledExecution.Run method.
Did I miss something ? Or is the
token
in theEval
method suposed to work and I might be using it wrongly ?Beta Was this translation helpful? Give feedback.
All reactions