ManualResetValueTaskSourceCore<TResult> Структура
Определение
Предоставляет базовую логику для реализации IValueTaskSource или IValueTaskSource<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>.
- Наследование
Свойства
RunContinuationsAsynchronously |
Возвращает или задает значение, указывающее, должны ли продолжения выполняться в асинхронном режиме.Gets or sets whether to force continuations to run asynchronously. |
Version |
Возвращает версию операции.Gets the operation version. |
Методы
GetResult(Int16) |
Возвращает результат операции.Returns the result of the operation. |
GetStatus(Int16) |
Возвращает состояние операции.Gets the status of the operation. |
OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) |
Планирует действие продолжения для этой операции.Schedules the continuation action for this operation. |
Reset() |
Выполняет сброс для подготовки к следующей операции.Resets to prepare for the next operation. |
SetException(Exception) |
Завершается с ошибкой.Completes with an error. |
SetResult(TResult) |
Завершается успешно.Completes with a successful result. |