Show / Hide Table of Contents

    Class UnityMainThreadTaskScheduler

    Inheritance
    Object
    TaskScheduler
    UnityMainThreadTaskScheduler
    Implements
    IDisposable
    Inherited Members
    TaskScheduler.TryDequeue(Task)
    TaskScheduler.FromCurrentSynchronizationContext()
    TaskScheduler.TryExecuteTask(Task)
    TaskScheduler.MaximumConcurrencyLevel
    TaskScheduler.Current
    TaskScheduler.Id
    TaskScheduler.UnobservedTaskException
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: IPA.Utilities.Async
    Assembly: IPA.Loader.dll
    Syntax
    public class UnityMainThreadTaskScheduler : TaskScheduler, IDisposable

    Properties

    | Improve this Doc View Source

    Default

    Declaration
    public static TaskScheduler Default { get; }
    Property Value
    Type Description
    TaskScheduler
    | Improve this Doc View Source

    IsRunning

    Declaration
    public bool IsRunning { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    YieldAfterTasks

    Declaration
    public int YieldAfterTasks { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    Coroutine()

    Declaration
    public IEnumerator Coroutine()
    Returns
    Type Description
    IEnumerator
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing
    | Improve this Doc View Source

    GetScheduledTasks()

    Throws a NotSupportedException.

    Declaration
    protected override IEnumerable<Task> GetScheduledTasks()
    Returns
    Type Description
    IEnumerable<Task>

    nothing

    Overrides
    TaskScheduler.GetScheduledTasks()
    Exceptions
    Type Condition
    NotSupportedException

    Always.

    | Improve this Doc View Source

    QueueTask(Task)

    Declaration
    protected override void QueueTask(Task task)
    Parameters
    Type Name Description
    Task task
    Overrides
    TaskScheduler.QueueTask(Task)
    | Improve this Doc View Source

    TryExecuteTaskInline(Task, Boolean)

    Declaration
    protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
    Parameters
    Type Name Description
    Task task
    Boolean taskWasPreviouslyQueued
    Returns
    Type Description
    Boolean
    Overrides
    TaskScheduler.TryExecuteTaskInline(Task, Boolean)

    Implements

    System.IDisposable

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX