Releases: twitter/util
Releases · twitter/util
Util 6.24.0
New Features:
- util-core: Introduce AsyncStream, an experimental replacement for Spool.
API Changes:
- util-core:
Future.willEqual()now returnsFuture[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:
TimeFormatnow 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 ifthisSpool 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
combinesReader,WriterandClosable. - util-core:
Reader.concatandReader.copyManynow 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.onFailurenow only applies aPartialFunctionif
PartialFunction.isDefinedAtreturns true. - util-core:
AsyncSemaphorenow requires thatinitialPermitsbe positive. - util-core: The
ReaderandWriterfromReader.Writable.close()are now
synchronized onclose.