mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Use a dedicated thread to process world data (#1585)
This change allow low-end devices to join servers without timeout
This commit is contained in:
parent
3b5488a7bf
commit
9e5364a4ff
4 changed files with 43 additions and 13 deletions
|
|
@ -699,6 +699,7 @@ namespace MinecraftClient
|
|||
/// Schedule a task to run on the main thread
|
||||
/// </summary>
|
||||
/// <param name="task">Task to run</param>
|
||||
/// <returns>Any result returned from delegate</returns>
|
||||
public object ScheduleTask(Delegate task)
|
||||
{
|
||||
if (!InvokeRequired())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue