• Demos
    • Fish-Networking
    • Basic Connection
    • Basic Authorization
  • Tutorials
    • Getting started
    • How does it work
    • Base connection to Master
    • Create New Connection Helper
    • Using SSL/TLS
    • Authorization
    • Work with user profiles
    • List of Game Servers/Rooms
    • Start game server/room
    • Working with databases
    • Command Line Arguments and Config file
    • Create Your Own Module
    • Deploying a server on Linux
    • Http Server
  • Components
    • MasterServerBehaviour
    • SpawnerBehaviour
    • ClientToMasterConnector
    • MstApplicationConfig
  • Modules
    • Auth Module
    • Ping Module
    • ProfilesModule
    • HttpServerModule
    • SpawnersModule
    • MatchmakingModule
    • RoomsModule
    • NotificationModule
  • API
    • Authentication
    • Chat
    • DB Accessors
    • Rooms/Game servers
    • Spawner
    • Connection Helper
    • Networking
    • Concurrency
  • Release notes
  • Unity Asset Store
    • Unity Package
    • Source Code
  • Our Discord Channel
Download

Download

Demo of using MST and Fish-Net together

Demo of using MST and Fish-Net together

Vriendly

Vriendly

Socialize - Discover - Learn

  • Home/
  • API/
  • Concurrency

Menu

  • Demos
    • Fish-Networking
    • Basic Connection
    • Basic Authorization
  • Tutorials
    • Getting started
    • How does it work
    • Base connection to Master
    • Create New Connection Helper
    • Using SSL/TLS
    • Authorization
    • Work with user profiles
    • List of Game Servers/Rooms
    • Start game server/room
    • Working with databases
    • Command Line Arguments and Config file
    • Create Your Own Module
    • Deploying a server on Linux
    • Http Server
  • Components
    • MasterServerBehaviour
    • SpawnerBehaviour
    • ClientToMasterConnector
    • MstApplicationConfig
  • Modules
    • Auth Module
    • Ping Module
    • ProfilesModule
    • HttpServerModule
    • SpawnersModule
    • MatchmakingModule
    • RoomsModule
    • NotificationModule
  • API
    • Authentication
    • Chat
    • DB Accessors
    • Rooms/Game servers
    • Spawner
    • Connection Helper
    • Networking
    • Concurrency
  • Release notes

Concurrency

Server side of MST is fully multithreaded, but sometimes you want to run Unity's API. Use this method to run all Unity's API classes.

public void RunInMainThread(Action action)

If you want to run something in thread pool use this method.

public void RunInThreadPool(Action action, int delayOrSleep = 0)

© Master Server Toolkit, 2023 г.