
pimpathon.runnable.scala Maven / Gradle / Ivy
package pimpathon
object runnable extends runnable
trait runnable {
implicit def runnableFromThunk[Discarded](thunk: () ⇒ Discarded): Runnable = create(thunk())
def create(action: ⇒ Unit): Runnable = new Runnable {
override def run(): Unit = action
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy