ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> Struct

定義

提供實作手動重設 IValueTaskSourceIValueTaskSource<TResult> 的核心邏輯。Provides the core logic for implementing a manual-reset IValueTaskSource or IValueTaskSource<TResult>.

generic <typename TResult>
public value class ManualResetValueTaskSourceCore
public struct ManualResetValueTaskSourceCore<TResult>
type ManualResetValueTaskSourceCore<'Result> = struct
Public Structure ManualResetValueTaskSourceCore(Of TResult)

類型參數

TResult

此手動重設IValueTaskSource<TResult>的結果類型。The type of the result of this manual-reset IValueTaskSource<TResult>.

繼承
ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>

屬性

RunContinuationsAsynchronously RunContinuationsAsynchronously RunContinuationsAsynchronously RunContinuationsAsynchronously

取得或設定是否要強制以非同步方式執行接續動作。Gets or sets whether to force continuations to run asynchronously.

Version Version Version Version

取得作業版本。Gets the operation version.

方法

GetResult(Int16) GetResult(Int16) GetResult(Int16) GetResult(Int16)

傳回作業的結果。Returns the result of the operation.

GetStatus(Int16) GetStatus(Int16) GetStatus(Int16) GetStatus(Int16)

取得作業狀態。Gets the status of the operation.

OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags)

為此作業排程接續動作。Schedules the continuation action for this operation.

Reset() Reset() Reset() Reset()

重設以為下一次的作業進行準備。Resets to prepare for the next operation.

SetException(Exception) SetException(Exception) SetException(Exception) SetException(Exception)

完成並附帶錯誤。Completes with an error.

SetResult(TResult) SetResult(TResult) SetResult(TResult) SetResult(TResult)

完成並附帶成功結果。Completes with a successful result.

適用於