Skip to content

Commit

Permalink
New $actions.restart() method to restart running actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanzhong committed Apr 5, 2022
1 parent bcad8a2 commit e119e0c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion docs/actions/scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,12 @@ Stop running immediately, the following actions will be ignored:
$actions.finish();
```

This method doesn't generate an error, it finishes running silently.
This method doesn't generate an error, it finishes running silently.

## $actions.restart()

Restart the current running actions:

```js
$actions.restart();
```
10 changes: 9 additions & 1 deletion docs/cn/actions/scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,12 @@ $actions.reject("Failed to run JavaScript.");
$actions.finish();
```

这个方法不会产生错误,仅会静默地结束运行。
这个方法不会产生错误,仅会静默地结束运行。

## $actions.restart()

重新运行当前正在运行的动作:

```js
$actions.restart();
```

0 comments on commit e119e0c

Please sign in to comment.