Skip to content
  • CDAGaming's avatar
    20dbaeb3
    [Change] Threading Changes to get us closer to multi-threading · 20dbaeb3
    CDAGaming authored
    - Updated CraftPresence's Timing systems, now stored in `CommandUtils` as a privated thread pool system
    - Added `getTimeUnitFrom` in `TimeUtils` for `TimeUnit` support, refactor the other `getUnitFrom` to `getChronoUnitFrom`
    - Saving now occurs after the GUI is fully closed, to allow the user quicker access back to their game while the config saves (As a flaw was exposed where discord's handshake can take longer then normal).
    - Button#onPush` events now occur in our thread instead of MC's GUI Thread, preventing soft-locks when tasks take longer then they should
    - Minor code cleanups
    20dbaeb3
    [Change] Threading Changes to get us closer to multi-threading
    CDAGaming authored
    - Updated CraftPresence's Timing systems, now stored in `CommandUtils` as a privated thread pool system
    - Added `getTimeUnitFrom` in `TimeUtils` for `TimeUnit` support, refactor the other `getUnitFrom` to `getChronoUnitFrom`
    - Saving now occurs after the GUI is fully closed, to allow the user quicker access back to their game while the config saves (As a flaw was exposed where discord's handshake can take longer then normal).
    - Button#onPush` events now occur in our thread instead of MC's GUI Thread, preventing soft-locks when tasks take longer then they should
    - Minor code cleanups
Loading