public sealed class AsyncWaitData<T> : IValueTaskSource<WaitDataStatus>,
IDisposable
Public NotInheritable Class AsyncWaitData(Of T)
Implements IValueTaskSource(Of WaitDataStatus), IDisposable[<SealedAttribute>]
type AsyncWaitData<'T> =
class
interface IValueTaskSource<WaitDataStatus>
interface IDisposable
end| CompletedData | 获取已完成时的返回数据。 |
| PendingData | 获取挂起时的原始数据(如果在创建时传入)。 |
| Sign | 获取此等待项的签名标识。 |
| Status | 获取当前等待状态(例如:Success、Canceled 等)。 |
| Cancel | 取消当前等待,标记为已取消并触发等待任务的异常(OperationCanceledException)。 |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| Set(T) | 将等待项设置为成功并携带结果数据。 |
| Set(WaitDataStatus, T) | 设置等待项的状态和数据,并完成对应的 ValueTask。 |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| WaitAsync | 异步等待此项完成,返回一个 ValueTaskTResult,可传入取消令牌以取消等待。 |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |
| IValueTaskSourceWaitDataStatusGetResult | Gets the result of the IValueTaskSourceTResult. |
| IValueTaskSourceWaitDataStatusGetStatus | Gets the status of the current operation. |
| IValueTaskSourceWaitDataStatusOnCompleted | Schedules the continuation action for this IValueTaskSourceTResult. |