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
I am currently trying to modify the scripts at runtime. If the script changes, the current execution of the script should be aborted. Is this somehow possible in .NET 5.0?
I would like to have the ability to pass a CancellationToken to the Execute task.
Thanks for the cool library! 👍🏻
The text was updated successfully, but these errors were encountered:
I can add cancellation, but it will not really work as you expect it.
In general aborting a script is not really possible (see the discussion here in the C# compiler repo dotnet/roslyn#23145 (comment))
The best you could do would be to run the script as an external process and kill that process when you know "it's time" to do it.
Hello,
I am currently trying to modify the scripts at runtime. If the script changes, the current execution of the script should be aborted. Is this somehow possible in .NET 5.0?
I would like to have the ability to pass a CancellationToken to the Execute task.
Thanks for the cool library! 👍🏻
The text was updated successfully, but these errors were encountered: