[feature] Using `cbor2` to read streams asynchronously in an `asyncio` application
未關閉
documentation
- 主要語言
- Rust
- 星號
- 305
- 分支
- 79
- 平均合併
- 21 小時 59 分鐘
- 30 天內合併 PR
- 2
描述
Hi,
I would like to use `cbor2` to read CBOR streams in the context of an `asyncio` application.
From what I see, it is not possible now. Is that right?
From looking at the code, it looks like one should do the `read()` function of `Decoder` async, and then propagate the changes; each
```
value = self.read(length)
```
becomes
```
value = await self.read(length)
```
So I suppose it is not a quick change to be done, as most things need to become asynchronous.
Regarding the C extension, I am not sure what would be involved.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。