All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.csiro.variantspark.work.TestApp.scala Maven / Gradle / Ivy

The newest version!
package au.csiro.variantspark.work

import java.util.function.Supplier

object TestApp {

  val tls: ThreadLocal[String] = ThreadLocal.withInitial[String](new Supplier[String] {
    def get(): String = {
      println("Init value")
      "fjldjfdjlfd"
    }
  })

  def main(args: Array[String]) {
    println("Value: " + tls.get)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy