Open this page in the API Guide

CommandService.isExecutionInProgress Property

Gets the value to indicate whether or not an action is being executed.