Table of Contents

Class PlatformWork

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

CPU field preparation: managed workers on native players, serial execution on single-threaded Web.

public static class PlatformWork
Inheritance
PlatformWork
Inherited Members

Fields

Inline

public const bool Inline = false

Field Value

bool

Methods

For(int, int, Action<int>, bool)

public static void For(int fromInclusive, int toExclusive, Action<int> body, bool forceInline = false)

Parameters

fromInclusive int
toExclusive int
body Action<int>
forceInline bool

Run(Action, bool)

public static Task Run(Action work, bool forceInline = false)

Parameters

work Action
forceInline bool

Returns

Task

Run<T>(Func<T>, bool)

public static Task<T> Run<T>(Func<T> work, bool forceInline = false)

Parameters

work Func<T>
forceInline bool

Returns

Task<T>

Type Parameters

T