notify icon indicating copy to clipboard operation
notify copied to clipboard

Breaking Changes v7

Open 0xpr03 opened this issue 2 years ago • 7 comments

List of things to change in v7

  • [ ] (maybe) PollWatcher: change timeout between intervals to include time spend performing work
  • [x] Config: Replace deprecated poll_interval signature with poll_interval_v2
  • [ ] (maybe) unify all places of panic/error for locking & thread starts
  • [ ] remove crossbeam
  • [ ] upgrade mio to 1.0 #560

todo:

  • [ ] add nightly test with conditional compilation check for #592

0xpr03 avatar Aug 14 '23 19:08 0xpr03

Is there more detailed information about 2 and 3?

zeroishero avatar Nov 05 '23 13:11 zeroishero

Not much. We introduced poll_intervall_v2 to stay semver compliant, we should change poll_intervall for v7 and thus remove v2.

And for thread start, join etc we don't handle errors the same way everywhere. Basic idea is to just decide whether to unwrap or error and do that everywhere.

Mainly a list of things to do when hitting v7, so we don't miss our chance for breaking changes.

0xpr03 avatar Nov 05 '23 13:11 0xpr03

So, i checked the 2nd one. It seems poll_interval is returning Duration while poll_interval_v2 is returning Option<Duration>. So, the intended change is to just change poll_interval to return Option and change calls of poll_interval_v2 back to poll_interval? That seems easy. Or Am I missing something?

zeroishero avatar Nov 05 '23 17:11 zeroishero

Yep that's the plan for when we actually go for v7. Until then I'd leave it as is (in main), or we'll have a harder time making patch/fix releases.

0xpr03 avatar Nov 05 '23 18:11 0xpr03

So, is there branch for v7? Will work related to this issue be accepted? I would like to do the 2nd one as it's quite easy and I will attempt 1.

zeroishero avatar Nov 06 '23 02:11 zeroishero

No we normally don't have that, but you can do a PR for these things anyway.

0xpr03 avatar Nov 06 '23 15:11 0xpr03

Can you explain what the first checklist is about? I want to try that.

zeroishero avatar Nov 07 '23 15:11 zeroishero