SHARE
TWEET

Untitled

a guest Jun 19th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. companion object {
  2.   @Volatile var myThing: SomeThing? = null
  3.     @Synchronized set(value: SomeThing?) {
  4.       val i = myThing
  5.       if (i != null) {
  6.         field = i
  7.       } else {
  8.         field = value
  9.       }
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top