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

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

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