Emergency Stop Button

Robot C Graphical : is there a "stop all task"s in graphical for vex, we are trying to make a button that is an emergency stop. it is currently pretty laggy the way we have it written. Any suggestion how to write the code in graphical for an e-stop button?

ROBOTC graphical has a stopAllMotors block but, as there is no official way to create tasks, we do not have a stopAllTasks block. It looks like the community has given good advise on how to implement an emergency stop button here.
https://vexforum.com/t/stop-all-tasks/48427/1

The general idea is to test the designated button each time around your primary while loop and take appropriate action.