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

skinny.engine.async.AsyncSupport.scala Maven / Gradle / Ivy

The newest version!
package skinny.engine.async

import skinny.engine.SkinnyEngineBase
import scala.concurrent.Future

/**
 * Async operations provider.
 */
trait AsyncSupport
    extends AsyncOperations { self: SkinnyEngineBase =>

  /**
   * true if async supported
   */
  override protected def isAsyncExecutable(result: Any): Boolean = {
    classOf[Future[_]].isAssignableFrom(result.getClass) ||
      classOf[AsyncResult].isAssignableFrom(result.getClass)
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy