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

codacy.events.package.scala Maven / Gradle / Ivy

package codacy

import org.slf4j.Logger
import shapeless.{lazily, Lazy}

package object events extends Events {

  type EventLogger = internal.EventLogger
  def EventLogger(logger: Logger): EventLogger = internal.EventLogger(logger)

  implicit class EventExtension[E <: Event](val event: E) extends AnyVal {
    def publish(implicit bus: Lazy[EventBus]) = lazily[EventBus].publish(event)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy