EventLoopClosed should contain the original event #1292
Labels
C - needs discussion
Direction must be ironed out
S - api
Design and usability
S - enhancement
Wouldn't this be the coolest?
This is a feature request.
Other, more low-level
channel
-alike crates provide each provide asend
method with anErr(...(T))
result for the failure case to recover the original event without a need toclone
it before-hand, butwinit
(as a high-level interface/wrapper) doesn't. I think this is a bit inconsistent. If there are some underlying platform implementations, where this is not possible, I thinkEventLoopProxy::send_event
should return anOption
-alike type (or a custom enum) in the error case.Examples:
calloop
crossbeam-channel
The text was updated successfully, but these errors were encountered: