Twitter Util v18.4.0 Release Notes

  • ๐Ÿ†• New Features

    
    * util-app: Add the ability to bind specific implementations for `LoadService.apply`
      via `App.loadServiceBindings`. ``PHAB_ID=D146554``
    
    * util-core: Introduce the `ClosableOnce` trait which extends the guarantees of
      `Closable` to include idempotency of the `close` method. ``PHAB_ID=D152000``
    
    โš™ Runtime Behavior Changes
    
    • util-app: Add visibility for NonFatal exceptions during exiting of c.t.app.App. Added visibility into any NonFatal exceptions which occur during the closing of resources during App#close. PHAB_ID=D146029

    • util-core: Ensure the Awaitable.CloseAwaitably0.closeAwaitably Future returns. Because the closed AtomicBoolean is flipped, we want to make sure that executing the passed in f function satisfies the onClose Promise even the cases of thrown exceptions. PHAB_ID=D146565

    • ๐Ÿ–จ util-stats: Alphabetically sort stats printed to the given PrintStream in the c.t.finagle.stats.InMemoryStatsReceiver#print(PrintStream) function.

    To include stats headers which provide better visual separation for the different types of stats being printedm, set includeHeaders to true. E.g.,

      InMemoryStatsReceiver#print(PrintStream, includeHeaders = true)
    

    PHAB_ID=D144091