Files
RobustToolbox/Robust.Server/ServerWarmup.cs
2022-12-05 00:44:50 +01:00

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();
}
}