ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Threading.IScheduleOnInterval Interface Reference

Defines the contract for scheduling tasks to run at regular intervals. More...

Inheritance diagram for XmobiTea.Threading.IScheduleOnInterval:
XmobiTea.Threading.Agent.ScheduleOnIntervalAgent XmobiTea.Threading.IFiber XmobiTea.Threading.PoolFiber XmobiTea.Threading.RoundRobinFiber XmobiTea.Threading.ThreadFiber

Public Member Functions

IScheduleOnIntervalTask ScheduleOnInterval (Action action, long firstInMs, int regularInMs)
 Schedules an action to be executed at regular intervals.
 

Detailed Description

Defines the contract for scheduling tasks to run at regular intervals.

Member Function Documentation

◆ ScheduleOnInterval()

IScheduleOnIntervalTask XmobiTea.Threading.IScheduleOnInterval.ScheduleOnInterval ( Action action,
long firstInMs,
int regularInMs )

Schedules an action to be executed at regular intervals.

Parameters
actionThe action to be scheduled.
firstInMsThe delay in milliseconds before the first execution of the action.
regularInMsThe interval in milliseconds between subsequent executions of the action.
Returns
An instance of IScheduleOnIntervalTask representing the scheduled task.

Implemented in XmobiTea.Threading.Agent.ScheduleOnIntervalAgent, XmobiTea.Threading.PoolFiber, XmobiTea.Threading.RoundRobinFiber, and XmobiTea.Threading.ThreadFiber.


The documentation for this interface was generated from the following file: