We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5446dd7 commit 39fbb62Copy full SHA for 39fbb62
GameFrameX.Core/Hotfix/Agent/BaseComponentAgent.cs
@@ -208,6 +208,24 @@ public void Unscheduled(long id)
208
ScheduleIdSet.Remove(id);
209
}
210
211
+ /// <summary>
212
+ /// 暂停定时任务,不再执行
213
+ /// </summary>
214
+ /// <param name="id">定时任务ID</param>
215
+ public void Pause(long id)
216
+ {
217
+ QuartzTimer.Pause(id);
218
+ }
219
+
220
221
+ /// 恢复暂停的定时任务,继续执行
222
223
224
+ public void Resume(long id)
225
226
+ QuartzTimer.Resume(id);
227
228
229
/// <summary>
230
/// 延迟执行定时任务,在指定的时间点执行一次任务
231
/// </summary>
0 commit comments