[feature] Using `cbor2` to read streams asynchronously in an `asyncio` application
Open
documentation
- Dominant language
- Rust
- Stars
- 305
- Forks
- 79
- Avg merge
- 21h 59m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.