Why doesn’t SessionDataSet implement the IAsyncDisposable interface?
还没有人认领这个 Issue。
评估
调研方向
定位 SessionDataSet,并检查其现有的 IDisposable 实现,尤其是 Dispose() 和异步 Close() 入口点。确认该类支持异步释放,并且在不改变现有同步释放行为的情况下等待 Close() 完成;该 issue 未提供测试或文件路径,因此应针对两条释放路径检查完成情况。
由索引模型根据 Issue 内容生成。
描述
Currently, SessionDataSet implements the IDisposable interface. However, in its Dispose() method, the asynchronous Close() method is invoked synchronously.
Actual implementation:
protected virtual void Dispose(bool disposing)
{
if (this.disposedValue)
return;
if (disposing)
{
try
{
//synchronous call
this.Close().Wait();
}
catch
{
}
}
this.disposedValue = true;
}
Proposed implementation:
protected virtual Task DisposeAsync(bool disposing)
{
if (this.disposedValue)
return;
if (disposing)
{
try
{
//asynchronous call
await this.Close();
}
catch
{
}
}
this.disposedValue = true;
}
- 主要语言
- C#
- 星标
- 24
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/iotdb-client-csharp 的其他 Issue
-
网络波动后导致获取连接失败 未关闭
难度 4/5 3-5 天 新手友好度 45/100
apache/iotdb-client-csharp#58 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
apache/iotdb-client-csharp#55 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
apache/iotdb-client-csharp#53 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 64/100
apache/iotdb-client-csharp#50 · 5 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
apache/iotdb-client-csharp#36 · 1 条评论 · 1 个 reaction ·
查看 apache/iotdb-client-csharp 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
nightscout/nocturne#1425 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
Documentation
难度 2/5 1-3 小时 新手友好度 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
难度 2/5 1-2 天 新手友好度 75/100
Altinn/altinn-auth#4143 ·