Skip to content

v0.0.0-alpha.16 - 2024-02-27

Latest
Compare
Choose a tag to compare
@justincpresley justincpresley released this 28 Feb 03:53

Added

  • RWMutex is embedded into StateVector.
  • Update() for StateVector that updates the time for an entry. LastUpdated() pulls the time for a certain entry.

Changed

  • Scheduler operates entirely with time.Duration instead of int64 internally. This removes many type conversions and makes it more readable. (made possible with math/rand/v2)
  • Scheduler now has RWMutex instead of Mutex. This will not affect it's usage in our case now but could in other use cases.
  • Changed logic of OnTimer function within Core to read better.
  • De-interfaced StateVector.
  • Core now uses StateVectors additional functionality (mutexes and times). This unclutters the Core.
  • OrderedMap is now named NameMap, modernized different aspects of it. The internal list used is now fully hidden from external API.
  • Updated all dependencies.

Fixed

  • Copying a NameMap (previously OrderedMap) now correctly copies everything.

Removed

  • init.go, math/rand/v2 provides a simple seed for us to use from the get-go.