IAsyncReasonDisposable
Ecng.Common
Interface for async disposable objects that can be disposed with a reason.
实现: IAsyncDisposable
属性
方法
DisposeAsync
public ValueTask<bool> DisposeAsync(string reason)
result = iAsyncReasonDisposable.DisposeAsync(reason)
Disposes the object asynchronously with a reason.
- reason
- The reason for disposal.
返回值: true if the object was successfully disposed; otherwise, false.