Skip to content

Releases: twitter/util

Util 6.24.0

08 Mar 04:28

Choose a tag to compare

New Features:

  • util-core: Introduce AsyncStream, an experimental replacement for Spool.

API Changes:

  • util-core: Future.willEqual() now returns Future[Boolean] instead of
    Promise[Boolean].
  • util-core: rename VarSource to ActivitySource. remove
    com.twitter.io.exp.VarSource.Result, return Activity[T]
    instead of Var[VarSource.Result[T]]. Remove FailoverVarSource in
    favor of ActivitySource.orElse.
  • util-core: TimeFormat now throws IllegalArgumentException if the pattern
    uses the week year ('Y') without the week number ('w')
  • util-core: Spool.++ used to force its argument, but now it is evaluated
    only if this Spool is empty. To revert to existing behavior,
    simply force the argument before passing it to ++.
  • util-core: Reader.writable() returns a new type, Reader.Writable, which
    combines Reader, Writer and Closable.
  • util-core: Reader.concat and Reader.copyMany now take an AsyncStream
    argument instead of Spool.

Changes in Runtime Behavior:

  • util-core: Futures still rethrow on fatals, but now also Monitor.handle on
    them.
  • util-core: Future.onFailure now only applies a PartialFunction if
    PartialFunction.isDefinedAt returns true.
  • util-core: AsyncSemaphore now requires that initialPermits be positive.
  • util-core: The Reader and Writer from Reader.Writable.close() are now
    synchronized on close.