Table of Contents

Class ChannelMicroThreadAwaiter<T>

Namespace
Stride.Core.MicroThreading
Assembly
Stride.Core.MicroThreading.dll
public class ChannelMicroThreadAwaiter<T> : ICriticalNotifyCompletion, INotifyCompletion

Type Parameters

T
Inheritance
ChannelMicroThreadAwaiter<T>
Implements

Constructors

ChannelMicroThreadAwaiter(MicroThread)

public ChannelMicroThreadAwaiter(MicroThread microThread)

Parameters

microThread MicroThread

Properties

IsCompleted

public bool IsCompleted { get; set; }

Property Value

bool

Methods

GetAwaiter()

public ChannelMicroThreadAwaiter<T> GetAwaiter()

Returns

ChannelMicroThreadAwaiter<T>

GetResult()

public T GetResult()

Returns

T

New(MicroThread)

public static ChannelMicroThreadAwaiter<T> New(MicroThread microThread)

Parameters

microThread MicroThread

Returns

ChannelMicroThreadAwaiter<T>

OnCompleted(Action)

Schedules the continuation action that's invoked when the instance completes.

public void OnCompleted(Action continuation)

Parameters

continuation Action

The action to invoke when the operation completes.

Exceptions

ArgumentNullException

The continuation argument is null (Nothing in Visual Basic).

UnsafeOnCompleted(Action)

Schedules the continuation action that's invoked when the instance completes.

public void UnsafeOnCompleted(Action continuation)

Parameters

continuation Action

The action to invoke when the operation completes.

Exceptions

ArgumentNullException

The continuation argument is null (Nothing in Visual Basic).