Internal class used to manage scheduling of tasks
public class Microthread : IDisposableMembers at a glance
| Kind | Members |
|---|---|
| Constructors | Microthread |
| Fields | ThreadState |
| Methods | Dispose · GetCurrentThreadTicks · ToString · Yield · YieldCurrentThread · YieldIfQuantaExceeded |
Constructors
Microthread
public Microthread()No description in the API snapshot.
Fields
ThreadState
protected Microthread.State ThreadStateThe current state of this thread.
Methods
Dispose
public virtual void Dispose()Disposes resources used by this microthread.
GetCurrentThreadTicks
public static long GetCurrentThreadTicks()Returns the time when this thread will yield.
Returns: long — The timestamp as returned by Stopwatch.GetTimestamp when this thread will yield.
ToString
public override string ToString()No description in the API snapshot.
Yield
public void Yield()Explicitly yield the current thread or coroutine.
YieldCurrentThread
public static long YieldCurrentThread()Explicitly yield the current thread or coroutine.
Returns: long — Returns the current thread ticks as returned by Microthread.GetCurrentThreadTicks.
YieldIfQuantaExceeded
public static void YieldIfQuantaExceeded()Conditionally yields if the thread has exceeded its given runtime.
public static long YieldIfQuantaExceeded(long ticks)Conditionally yields if the thread has exceeded its given runtime.
| Parameter | Type | Description |
|---|---|---|
ticks | long |
Returns: long
Generated from the Sansar 47.10.0 client ScriptApi snapshot.