Photon Server API Documentation v5.0RC1

Public Member Functions | Public Attributes | List of all members
ExitGames.Threading.ExtendedBeforeAfterExecutor Class Reference

Executor that can be paused/resumed and that executes actions before and after executing of actions batch More...

Inheritance diagram for ExitGames.Threading.ExtendedBeforeAfterExecutor:
ExitGames.Threading.BeforeAfterExecutor ExitGames.Concurrency.Fibers.IExtendedExecutor ExitGames.Concurrency.Core.IExecutor ExitGames.Concurrency.Core.IExecutor

Public Member Functions

 ExtendedBeforeAfterExecutor ()
 
 ExtendedBeforeAfterExecutor (IExtendedExecutor executor)
 
 ExtendedBeforeAfterExecutor (Action beforeExecute, Action afterExecute, IExtendedExecutor executor=null)
 
void Pause ()
 Pauses execution. Execution stops after current action More...
 
void Resume (IFiberAction executeFirstAction=null)
 Resumes execution. Execution starts either from executeFirstAction or executor will continue to execute list of actions More...
 
- Public Member Functions inherited from ExitGames.Threading.BeforeAfterExecutor
 BeforeAfterExecutor (IExecutor executor=null)
 
 BeforeAfterExecutor (Action beforeExecute, Action afterExecute, IExecutor executor=null)
 
void Execute (List< IFiberAction > toExecute)
 Executes all actions. More...
 
void Execute (IFiberAction toExecute)
 

Public Attributes

bool IsPaused => this.executor.IsPaused
 Returns whether executor is paused or not More...
 

Additional Inherited Members

- Properties inherited from ExitGames.Threading.BeforeAfterExecutor
Action BeforeExecute [get, set]
 
Action AfterExecute [get, set]
 
- Properties inherited from ExitGames.Concurrency.Fibers.IExtendedExecutor
bool IsPaused [get]
 

Detailed Description

Executor that can be paused/resumed and that executes actions before and after executing of actions batch

Constructor & Destructor Documentation

◆ ExtendedBeforeAfterExecutor() [1/3]

ExitGames.Threading.ExtendedBeforeAfterExecutor.ExtendedBeforeAfterExecutor ( )
inline

◆ ExtendedBeforeAfterExecutor() [2/3]

ExitGames.Threading.ExtendedBeforeAfterExecutor.ExtendedBeforeAfterExecutor ( IExtendedExecutor  executor)
inline

◆ ExtendedBeforeAfterExecutor() [3/3]

ExitGames.Threading.ExtendedBeforeAfterExecutor.ExtendedBeforeAfterExecutor ( Action  beforeExecute,
Action  afterExecute,
IExtendedExecutor  executor = null 
)
inline

Member Function Documentation

◆ Pause()

void ExitGames.Threading.ExtendedBeforeAfterExecutor.Pause ( )
inline

Pauses execution. Execution stops after current action

Implements ExitGames.Concurrency.Fibers.IExtendedExecutor.

◆ Resume()

void ExitGames.Threading.ExtendedBeforeAfterExecutor.Resume ( IFiberAction  executeFirstAction = null)
inline

Resumes execution. Execution starts either from executeFirstAction or executor will continue to execute list of actions

Parameters
executeFirstAction

Implements ExitGames.Concurrency.Fibers.IExtendedExecutor.

Member Data Documentation

◆ IsPaused

bool ExitGames.Threading.ExtendedBeforeAfterExecutor.IsPaused => this.executor.IsPaused

Returns whether executor is paused or not