API ReferenceSandbox.Utility

Parallelclass

Wrappers of the parallel class.

objectParallel
Namespace
Sandbox.Utility
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Utility.Parallel

Methods4

Showing 4 methods

public static bool For(int fromInclusive, int toExclusive, System.Action`1<int> body)PUBLICSTATIC

ParameterTypeDescription
fromInclusiveint
toExclusiveint
bodyAction<int>
Returns:bool

public static System.Threading.Tasks.Task ForAsync(int fromInclusive, int toExclusive, System.Threading.CancellationToken token, System.Func`3<int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask> body)PUBLICSTATIC

ParameterTypeDescription
fromInclusiveint
toExclusiveint
tokenCancellationToken
bodyFunc<int,CancellationToken,ValueTask>
Returns:Task

On this page