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

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

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 - 2024 Weber Informatics LLC | Privacy Policy