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

mb.pie.runtime.layer.Noop.kt Maven / Gradle / Ivy

The newest version!
package mb.pie.runtime.layer

import mb.pie.api.*

/**
 * A build layer that does nothing. For debugging or benchmarking purposes only.
 * DO NOT USE in production, as it disables checking for inconsistencies in the build.
 */
class NoopLayer : Layer {
  override fun requireTopDownStart(key: TaskKey, input: In) {}
  override fun requireTopDownEnd(key: TaskKey) {}
  override fun  validatePreWrite(key: TaskKey, data: TaskData, txn: StoreReadTxn) {}
  override fun  validatePostWrite(key: TaskKey, data: TaskData, txn: StoreReadTxn) {}
}