mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
21 lines
389 B
C#
21 lines
389 B
C#
using System.Threading.Tasks;
|
|
using Robust.Shared;
|
|
|
|
namespace Robust.Server;
|
|
|
|
/// <summary>
|
|
/// Logic for "warming up" things like slow static constructors concurrently.
|
|
/// </summary>
|
|
internal static class ServerWarmup
|
|
{
|
|
public static void RunWarmup()
|
|
{
|
|
Task.Run(WarmupCore);
|
|
}
|
|
|
|
private static void WarmupCore()
|
|
{
|
|
SharedWarmup.WarmupCore();
|
|
}
|
|
}
|