Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ChannelMicroThreadAwaiter<T> Class

    Namespace: Stride.Core.MicroThreading
    Assembly: Stride.Core.MicroThreading.dll
    System.Object → ChannelMicroThreadAwaiter<T>
    Derived from ChannelMicroThreadAwaiter<T>:

    public class ChannelMicroThreadAwaiter<T> : ICriticalNotifyCompletion, INotifyCompletion
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    ChannelMicroThreadAwaiter(MicroThread)
    Properties
    IsCompleted
    Methods
    GetAwaiter()
    GetResult()
    New(MicroThread)
    OnCompleted(Action)
    UnsafeOnCompleted(Action)
    | Improve this Doc View Source

    Constructors


    ChannelMicroThreadAwaiter(MicroThread)

    public ChannelMicroThreadAwaiter(MicroThread microThread)
    Parameters
    Type Name Description
    MicroThread microThread
    | Improve this Doc View Source

    Properties


    IsCompleted

    public bool IsCompleted { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Methods


    GetAwaiter()

    public ChannelMicroThreadAwaiter<T> GetAwaiter()
    Returns
    Type Description
    ChannelMicroThreadAwaiter<T>

    GetResult()

    public T GetResult()
    Returns
    Type Description
    T

    New(MicroThread)

    public static ChannelMicroThreadAwaiter<T> New(MicroThread microThread)
    Parameters
    Type Name Description
    MicroThread microThread
    Returns
    Type Description
    ChannelMicroThreadAwaiter<T>

    OnCompleted(Action)

    public void OnCompleted(Action continuation)
    Parameters
    Type Name Description
    System.Action continuation

    UnsafeOnCompleted(Action)

    public void UnsafeOnCompleted(Action continuation)
    Parameters
    Type Name Description
    System.Action continuation

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation