Photon Server API Documentation v5.0RC1

Public Member Functions | List of all members
ExitGames.Concurrency.Core.IScheduler Interface Reference

Methods for scheduling actions that will be executed in the future. More...

Inheritance diagram for ExitGames.Concurrency.Core.IScheduler:
ExitGames.Concurrency.Core.Scheduler ExitGames.Concurrency.Fibers.IFiber ExitGames.Concurrency.Fibers.GuiFiber ExitGames.Concurrency.Fibers.IExtendedFiber ExitGames.Concurrency.Fibers.PoolFiber ExitGames.Concurrency.Fibers.StubFiber ExitGames.Concurrency.Fibers.ThreadFiber ExitGames.Concurrency.Fibers.ExtendedPoolFiber ExitGames.Concurrency.Fibers.ExtendedPoolFiber

Public Member Functions

IDisposable Schedule (Action action, int firstInMs)
 Schedules an action to be executed once. More...
 
IDisposable ScheduleOnInterval (Action action, int firstInMs, int regularInMs)
 Schedule an action to be executed on a recurring interval. More...
 
IDisposable Schedule (IFiberAction action, int firstInMs)
 Schedules an action to be executed once. More...
 
IDisposable ScheduleOnInterval (IFiberAction action, int firstInMs, int regularInMs)
 Schedule an action to be executed on a recurring interval. More...
 

Detailed Description

Methods for scheduling actions that will be executed in the future.

Member Function Documentation

◆ Schedule() [1/2]

IDisposable ExitGames.Concurrency.Core.IScheduler.Schedule ( Action  action,
int  firstInMs 
)

Schedules an action to be executed once.

Parameters
action
firstInMs
Returns
a handle to cancel the timer.

Implemented in ExitGames.Concurrency.Fibers.PoolFiber, ExitGames.Concurrency.Fibers.ThreadFiber, ExitGames.Concurrency.Fibers.StubFiber, and ExitGames.Concurrency.Fibers.GuiFiber.

◆ Schedule() [2/2]

IDisposable ExitGames.Concurrency.Core.IScheduler.Schedule ( IFiberAction  action,
int  firstInMs 
)

Schedules an action to be executed once.

Parameters
action
firstInMs
Returns
a handle to cancel the timer.

Implemented in ExitGames.Concurrency.Fibers.PoolFiber, ExitGames.Concurrency.Fibers.ThreadFiber, ExitGames.Concurrency.Fibers.StubFiber, and ExitGames.Concurrency.Fibers.GuiFiber.

◆ ScheduleOnInterval() [1/2]

IDisposable ExitGames.Concurrency.Core.IScheduler.ScheduleOnInterval ( Action  action,
int  firstInMs,
int  regularInMs 
)

Schedule an action to be executed on a recurring interval.

Parameters
action
firstInMs
regularInMs
Returns
a handle to cancel the timer.

Implemented in ExitGames.Concurrency.Fibers.PoolFiber, ExitGames.Concurrency.Fibers.ThreadFiber, ExitGames.Concurrency.Fibers.StubFiber, and ExitGames.Concurrency.Fibers.GuiFiber.

◆ ScheduleOnInterval() [2/2]

IDisposable ExitGames.Concurrency.Core.IScheduler.ScheduleOnInterval ( IFiberAction  action,
int  firstInMs,
int  regularInMs 
)

Schedule an action to be executed on a recurring interval.

Parameters
action
firstInMs
regularInMs
Returns
a handle to cancel the timer.

Implemented in ExitGames.Concurrency.Fibers.PoolFiber, ExitGames.Concurrency.Fibers.ThreadFiber, ExitGames.Concurrency.Fibers.StubFiber, and ExitGames.Concurrency.Fibers.GuiFiber.