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

sbt.testing.EventHandler.scala Maven / Gradle / Ivy

The newest version!
/*
 * Scala.js (https://www.scala-js.org/)
 *
 * Copyright EPFL.
 *
 * Licensed under Apache License 2.0
 * (https://www.apache.org/licenses/LICENSE-2.0).
 *
 * See the NOTICE file distributed with this work for
 * additional information regarding copyright ownership.
 */

package sbt.testing

/** Interface implemented by clients that handle events fired by the test
 *  framework during a run.
 *
 *  An event handler is passed to the test framework via the
 *  execute method of Tasks.
 */
trait EventHandler {

  /** Handle an event.
   *
   *  @param event the event to handle
   */
  def handle(event: Event): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy