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

org.backuity.puppet.ConcurrentUtil.scala Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package org.backuity.puppet

import java.util.concurrent.ExecutorService

object ConcurrentUtil {

  implicit class PimpExecutorService(val ec: ExecutorService) extends AnyVal {
    def run(f : => Unit): Unit = {
      ec.execute(new Runnable {
        override def run(): Unit = f
      })
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy