If I wait for user input in node and depending on it I execute a function and pass some parameters inside it is there any way to stop this function after it starts being executed?
I am creating a node app that runs multiple tasks depending on user input and I have no idea how people can "pause" or "stop" some tasks after they start being executed.
I saw some people creating some automation stuff and having stop/pause functionality but how exactly do they achieve it?