Conversation
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
Hmmm, for folks that don't call |
|
Note that "just drop the cookie" explicitly appears in the docs as an option: https://docs.rs/x11rb/latest/x11rb/cookie/index.html#handling-x11-errors With your code changes, how would I handle errors asynchronously, i.e. without forcing a round-trip to the X11 server (which is what
For what it's worth: In "my projects", I always try to arrange for Random example: Add |
|
Maybe we add a method to |
…e from psychon/x11rb#933 (comment) Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
See my second commit: you have to explicitly drop it either with
Damn, digging through my projects is some A grade support lol. 😁 I'm always a fan of improved perf so yeah that's a good way to do things. Implemented in SUPERCILEX/clipboard-history@0eca6dc. I personally wouldn't mind being forced to write @notgull Eyyy, glad to see you here! What's the benefit over calling drop or using an empty let binding? |
…e from psychon/x11rb#933 (comment) Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
It gives it semantic meaning. |
|
Good point. Maybe we call it |
Your're welcome. :-) You wrote that you had some problems with this and I wanted to find out what exactly you were doing and whether the advice I give would be helpful at all. Luckily, one of your first Rust repos was a hit (I also looked at how
If we want to go that route (@notgull seems to be on board and I am neutral), I would propose another color for that bike shed: How about Also, in that case the table in the docs that I linked to above should be updated, I guess? Or is |
Yeah my specific issue was that I called
Yup, that's all it'd do. Naming wise, maybe
Yeah, do you know of any other invested parties that could weigh in? This could be a pretty big change, so it'd be nice to know how annoyed people would be. 😅 |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
I've goofed this several times now and wasted a few hours trying to understand why nothing would happen only to realize I forgot to call
check(which I believe flushes requests). This would make that bug very hard to write.