You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
We'd like to use `java.lang.ClassValue`, but its Java API looks cumbersome in
Scala as it requires subclassing and overriding a protected method for every
class value.
Solution
Add a `Memoize.classValue` method for `Class[_] => T` functions that resembles
ordinary memoization in its API but uses `ClassValue` internally.
Differential Revision: https://phabricator.twitter.biz/D825673
0 commit comments