You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
let recExecuteParsedInteractionInGroups(ctok,istate,synInteraction,diagnosticsLogger:DiagnosticsLogger,lastResult:FsiValue option,cancellationToken:CancellationToken)=
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 ?
Activity