Gets the global registry.
Gets the global registry.
If it's call inside of a withRegistry
context then it's a temporary
registry, useful for writing isolated tests.
Changes the global registry to instead return a local one.
Changes the global registry to instead return a local one.
Takes the registry context with it when moved to a different thread via
Twitter concurrency primitives, like flatMap
on a
com.twitter.util.Future.
This is an expert-level API; it is not meant for end-users.