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
Any argument to an SQE prep method which is a reference (e.g. buffers, the mutable references in prep_accept) must outlive the completion of the IO event that is being prepared. There's no way to directly express this lifetime, as the completion of the IO is dynamic and unpredictable. This is the core reason these prep APIs are marked unsafe.
Users of iou are responsible for guaranteeing that these values will not be invalidated until after the completion occurs. We should provide clear, precise, and comprehensible documentation about the safety requirements of these methods.
The text was updated successfully, but these errors were encountered:
Any argument to an SQE prep method which is a reference (e.g. buffers, the mutable references in prep_accept) must outlive the completion of the IO event that is being prepared. There's no way to directly express this lifetime, as the completion of the IO is dynamic and unpredictable. This is the core reason these prep APIs are marked unsafe.
Users of iou are responsible for guaranteeing that these values will not be invalidated until after the completion occurs. We should provide clear, precise, and comprehensible documentation about the safety requirements of these methods.
The text was updated successfully, but these errors were encountered: