Photon Server API
Public Member Functions | List of all members
ExitGames.Concurrency.Core.Scheduler Class Reference

Enqueues actions on to context after schedule elapses. /summary> More...

Inheritance diagram for ExitGames.Concurrency.Core.Scheduler:
ExitGames.Concurrency.Core.ISchedulerRegistry ExitGames.Concurrency.Core.IScheduler

Public Member Functions

 Scheduler (IExecutionContext executionContext)
 
IDisposable Schedule (Action action, long firstInMs)
 
IDisposable ScheduleOnInterval (Action action, long firstInMs, long regularInMs)
 
void Remove (IDisposable toRemove)
 
void Enqueue (Action action)
 Enqueue action to target fiber. More...
 
void Dispose ()
 

Detailed Description

Enqueues actions on to context after schedule elapses. /summary>

Constructor & Destructor Documentation

ExitGames.Concurrency.Core.Scheduler.Scheduler ( IExecutionContext  executionContext)
inline

summary> Enqueues action on to context after timer elapses. /summary>

Member Function Documentation

void ExitGames.Concurrency.Core.Scheduler.Dispose ( )
inline
void ExitGames.Concurrency.Core.Scheduler.Enqueue ( Action  action)
inline

Enqueue action to target fiber.

Parameters
action

Implements ExitGames.Concurrency.Core.ISchedulerRegistry.

void ExitGames.Concurrency.Core.Scheduler.Remove ( IDisposable  toRemove)
inline

summary> Enqueues actions on to context immediately. /summary> param name="action">

Implements ExitGames.Concurrency.Core.ISchedulerRegistry.

IDisposable ExitGames.Concurrency.Core.Scheduler.Schedule ( Action  action,
long  firstInMs 
)
inline

summary> Enqueues actions on to context after schedule elapses. /summary>

Implements ExitGames.Concurrency.Core.IScheduler.

IDisposable ExitGames.Concurrency.Core.Scheduler.ScheduleOnInterval ( Action  action,
long  firstInMs,
long  regularInMs 
)
inline

summary> Removes a pending scheduled action. /summary> param name="toRemove">

Implements ExitGames.Concurrency.Core.IScheduler.