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

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

There is a newer version: 1.1.0
Show newest version
package skinny.micro.async

import skinny.micro.SkinnyMicroBase
import scala.concurrent.Future

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

  /**
   * 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