Throws a ActionTimeoutException if the action has been executing for at least Timeout seconds or throws a ActionCanceledException if the action has been canceled.