Photon Server API
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.PoolFiber ExitGames.Concurrency.Fibers.StubFiber ExitGames.Concurrency.Fibers.ThreadFiber ExitGames.Concurrency.Fibers.DispatcherFiber ExitGames.Concurrency.Fibers.FormFiber ExitGames.Concurrency.Fibers.ExtendedPoolFiber

Public Member Functions

IDisposable Schedule (Action action, long firstInMs)
 Schedules an action to be executed once. More...
 
IDisposable ScheduleOnInterval (Action action, long firstInMs, long 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

IDisposable ExitGames.Concurrency.Core.IScheduler.Schedule ( Action  action,
long  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, ExitGames.Concurrency.Fibers.GuiFiber, and ExitGames.Concurrency.Core.Scheduler.

IDisposable ExitGames.Concurrency.Core.IScheduler.ScheduleOnInterval ( Action  action,
long  firstInMs,
long  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, ExitGames.Concurrency.Fibers.GuiFiber, and ExitGames.Concurrency.Core.Scheduler.