Skip to content

feat: Instant::now_fiber & Instant::now_accurate

Georgy Moshkin requested to merge gmoshkin/instant-now-renaming into master

Summary

  • test: fix fiber_sleep test

  • fix: net_box::Promise::wait_timeout used to be inaccurate

  • feat: Instant::{now_fiber, now_accurate} more decreased confusion

Previously we had Instant::now & fiber::clock, but it was not obvious and not convenient enough for users. Now we have

  • Instant::now_fiber (previously fiber::clock) for computing timeouts
  • Instant::now_accurate (previously Instant::now) for accurate timings

Instant::now is now deprecated, because it is confusing, but fiber::clock is not yet deprecated, because it's not that confusing.

  • feat: tarantool::time::INFINITY

Unfortunately we have 2 time related modules now: clock & time. Ideally we would only have one. But this commit is just dealing with some inconveniences which arose from this fact.

Ensure that

  • New code is covered by tests
  • API is documented
  • Changelog is up to date
  • Version is bumped in the appropriate Cargo.toml files

Merge request reports