runs a loop waiting for events to occur, and calling a event-handler, while isRunning == true
node is the Node to run the loop for
eventHandler is the function to call when any event occurs
isRunning is the variable that specifies if the loop is still running, it can be terminated using isRunning=false
runs a loop waiting for events to occur, and calling a event-handler, while isRunning == true
node is the Node to run the loop for eventHandler is the function to call when any event occurs isRunning is the variable that specifies if the loop is still running, it can be terminated using isRunning=false