5 ms·
> I don't understand why this is so confusing. Pinning a buffer is easy. Dealing with ownership ramifications in all situations is confusing.
by Dylan16807 4y ago
> I don't understand why this is so confusing.
Pinning a buffer is easy. Dealing with ownership ramifications in all situations is confusing.
- dblohm7 4y agoThat's fair, but how is that any different than async I/O on any other OS?
- Dylan16807 4y agoMy understanding is the API they want notifies when data is ready, then you make a buffer and fill it immediately. In that situation a significantly smaller set of errors is possible and you don't have to figure out disposal of a pinned and possibly-in-use buffer if you decide to cancel.