Skip to content

Instantly share code, notes, and snippets.

@vhutov
Last active March 12, 2018 22:46
Show Gist options
  • Save vhutov/2e10fa4666447bb63ff36dbdd457b380 to your computer and use it in GitHub Desktop.
Save vhutov/2e10fa4666447bb63ff36dbdd457b380 to your computer and use it in GitHub Desktop.
trait Consumer {
def name: String
def await(msg: Message): Future[Unit]
def close(): Unit
}
trait Publisher[V <: Message] {
def name: String
def send(value: V): Future[Unit]
def close(): Unit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment