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
The Executors and System IO chapter includes a (pseudo-)code snippet that outlines how an IO blocking primitive is generally structured. This is minor, but shouldn't the self reference this function takes be mutable?
/// Express an interest in a particular IO event.fnadd_io_event_interest(&self,/// The object on which the event will occurio_object:&IoObject,/// A set of signals that may appear on the `io_object` for/// which an event should be triggered, paired with/// an ID to give to events that result from this interest.event:Event,){/* ... */}
Later on in the same snippet, we specifically make the variable holding an IoBlocker mutable, presumably because it needs to be mutable to call add_io_event_interest on it.
The Executors and System IO chapter includes a (pseudo-)code snippet that outlines how an IO blocking primitive is generally structured. This is minor, but shouldn't the
self
reference this function takes be mutable?Later on in the same snippet, we specifically make the variable holding an
IoBlocker
mutable, presumably because it needs to be mutable to calladd_io_event_interest
on it.The text was updated successfully, but these errors were encountered: