Description
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:
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 the Eval
method suposed to work and I might be using it wrongly ?
Metadata
Metadata
Assignees
Type
Projects
Status