isInputPending DEMO
see developer console
start task
stop task