Table of Contents

Struct MainThreadTaskAwaiter

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

Represents an awaiter for the SyncToMainThreadTask.

public readonly struct MainThreadTaskAwaiter : INotifyCompletion
Implements
Inherited Members

Properties

IsCompleted

Gets a value indicating whether the task is completed.

public bool IsCompleted { get; }

Property Value

bool

Methods

GetResult()

Gets the result of the task.

public void GetResult()

OnCompleted(Action)

public void OnCompleted(Action continuation)

Parameters

continuation Action

See Also