Table of Contents

Class ThreadHelper

Namespace
SunamoShared.SE
Assembly
SunamoShared.dll

Helper for thread-related operations including dispatcher checks and async sleep.

public class ThreadHelper
Inheritance
ThreadHelper
Inherited Members
Extension Methods

Methods

NeedDispatcher(string)

Determines whether the given type name requires a UI dispatcher for access.

public static bool NeedDispatcher(string typeName)

Parameters

typeName string

The name of the collection type to check.

Returns

bool

Sleep(int)

Pauses execution for the specified number of milliseconds. Uses Task.Delay in async mode, Thread.Sleep otherwise.

public static Task Sleep(int milliseconds)

Parameters

milliseconds int

The number of milliseconds to sleep.

Returns

Task