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

scalikejdbc.streams.ExecutionContextPreparable.scala Maven / Gradle / Ivy

The newest version!
package scalikejdbc.streams

import scala.concurrent.ExecutionContext

/**
 * ExecutionContext#prepare has been marked as deprecated since Scala 2.12.
 * But we still need the method for older Scala versions.
 * This trait is needed to keep the backward compatibility for older Scala.
 *
 * see also [[https://scala-lang.org/api/2.12.20/scala/concurrent/ExecutionContext.html]]
 */
private[streams] trait ExecutionContextPreparable {

  def executionContext: ExecutionContext

  def preparedExecutionContext(): ExecutionContext = executionContext

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy