You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,6 +294,8 @@ function createTask(job: AbstractBackgroundJob): AsyncTask {
294
294
* `start():void` - starts, or restarts (if it's already running) the job;
295
295
* `stop():void` - stops the job. Can be restarted again with `start` command;
296
296
* `getStatus():JobStatus` - returns the status of the job, which is one of: `running`, `stopped`.
297
+
* `executeAsync:Promise<void>` - executes the job task once and awaits its completion. Next scheduled execution will still be executed on schedule. Respects the "preventOverrun" check.
298
+
* `staticcreateAndExecute(schedule:SimpleIntervalSchedule, task:Task|AsyncTask, options:JobOptions= {}):Promise<SimpleIntervalJob>` - creates and immediately executes the job, resolving only after execution has completed.
0 commit comments