AsyncWriteRent and AsyncReadRent trait who's method maybe need receive the mut self reference [monoio] - TagMerge

AsyncWriteRent and AsyncReadRent trait who's method maybe need receive the mut self reference [monoio]

dyxushuaiAsked 5 months ago

I think the IO things can't be read or write concurrently. If we want do that then we can add Half APIs. Like what we see in the AsyncRead/AsyncWrite in futures or tokio.

Source: link

dyxushuaiAnswered 5 months ago

Also we can't separate concurrent reads and writes in the runtime context.

ihciahAnswered 5 months ago

If we can keep it memory safe, why we need to get a mut borrow? Concurrent read or write in uring is okay for kernel, then it can be considered as a user behavior.

Recent Issues

    Programming Languages