You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing I was a little confused by, is the mutable borrow here. I can't really find a reason why it'd have to be mutably borrowed, since it works just fine when changing it into an immutable borrow.
The reason I had to change this was because I wanted to receive data from the socket after polling it, which was not possible because the socket was already being mutably borrowed by the PollEntry.
I'll drop a PR to change this.
The text was updated successfully, but these errors were encountered:
I think the idea was to make it clear that you can't read or write while you are polling. It does mean you need to destroy the PollEntry after polling though, and see as the file handles are all just integers anyway, I agree it was probably more trouble than it was worth.
Great work on the library!
One thing I was a little confused by, is the mutable borrow here. I can't really find a reason why it'd have to be mutably borrowed, since it works just fine when changing it into an immutable borrow.
The reason I had to change this was because I wanted to receive data from the socket after polling it, which was not possible because the socket was already being mutably borrowed by the PollEntry.
I'll drop a PR to change this.
The text was updated successfully, but these errors were encountered: