一款简单易用的基础网络通讯组件库。

IWaitDataT 接口

IWaitData

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public interface IWaitData<T> : IDisposable
Implements
IDisposable

类型参数

T

属性

Status 等待对象的状态
WaitResult 等待结果

方法

Cancel 取消等待
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(继承自 IDisposable。)
Reset Reset。 设置WaitResult为null。然后重置状态为Default
Set 使等待的线程继续执行
Set(T) 使等待的线程继续执行
SetCancellationToken 加载取消令箭
SetResult 载入结果

扩展方法

SafeDispose 安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。)

参见