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

Default implementation. More...

Inheritance diagram for ExitGames.Concurrency.Core.DefaultQueue:
ExitGames.Concurrency.Core.IQueue

Public Member Functions

 DefaultQueue (IExecutor executor)
 
 DefaultQueue ()
 
void Enqueue (Action action)
 Enqueue action. More...
 
void Run ()
 Execute actions until stopped. More...
 
void Stop ()
 Stop consuming actions. More...
 
bool ExecuteNextBatch ()
 Remove all actions and execute. More...
 

Detailed Description

Default implementation.

Constructor & Destructor Documentation

ExitGames.Concurrency.Core.DefaultQueue.DefaultQueue ( IExecutor  executor)
inline

summary> Default queue with default executor /summary>

ExitGames.Concurrency.Core.DefaultQueue.DefaultQueue ( )
inline

Member Function Documentation

void ExitGames.Concurrency.Core.DefaultQueue.Enqueue ( Action  action)
inline

Enqueue action.

Parameters
action

Implements ExitGames.Concurrency.Core.IQueue.

bool ExitGames.Concurrency.Core.DefaultQueue.ExecuteNextBatch ( )
inline

Remove all actions and execute.

Returns
void ExitGames.Concurrency.Core.DefaultQueue.Run ( )
inline

Execute actions until stopped.

Implements ExitGames.Concurrency.Core.IQueue.

void ExitGames.Concurrency.Core.DefaultQueue.Stop ( )
inline

Stop consuming actions.

Implements ExitGames.Concurrency.Core.IQueue.