public static Task ForNonBlocking(this IMyParallelTask parallel, int minInclusive, int maxExclusive, Action <int> act, int stride = 1) { var work = ForLoopWork.Get(); work.Prepare(minInclusive, maxExclusive, stride, act); return(parallel.Start(work)); }
public static Task ForEachNonBlocking <T>(this IMyParallelTask parallel, IEnumerable <T> enumerable, Action <T> act) { var work = ForEachWork <T> .Get(); work.Prepare(act, enumerable.GetEnumerator()); return(parallel.Start(work)); }
public static void Clean() { Session = null; Entities = null; Players = null; CubeBuilder = null; TerminalActionsHelper = null; Utilities = null; Parallel = null; Multiplayer = null; PrefabManager = null; }
public static void Clean() { Session = null; Entities = null; Players = null; CubeBuilder = null; if (IngameScripting != null) { IngameScripting.Clean(); } IngameScripting = null; TerminalActionsHelper = null; Utilities = null; Parallel = null; Physics = null; Multiplayer = null; PrefabManager = null; Input = null; TerminalControls = null; }
public static void Clean() { Session = null; Entities = null; Players = null; CubeBuilder = null; TerminalActionsHelper = null; Utilities = null; Parallel = null; Multiplayer = null; PrefabManager = null; Input = null; }