Skip to content

Instantly share code, notes, and snippets.

@rssh
Created September 16, 2014 04:48
Show Gist options
  • Save rssh/a807ce21e030124fd7ed to your computer and use it in GitHub Desktop.
Save rssh/a807ce21e030124fd7ed to your computer and use it in GitHub Desktop.
jdv_article10 (stackable trait)
trait LoggedAsyncInput[T]
{
override def onReceive(acceptor: T => ()) =
super.onReceive(x => { println(s“received:${x}”)
acceptor(x) })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment