Skip to content

Instantly share code, notes, and snippets.

@koen-dejonghe
Created October 19, 2018 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koen-dejonghe/55fed913a79fcd2aa4dd1a0710aa5f8e to your computer and use it in GitHub Desktop.
Save koen-dejonghe/55fed913a79fcd2aa4dd1a0710aa5f8e to your computer and use it in GitHub Desktop.
def startPoint(batch: (Variable, Variable)): Receive = {
case msg @ (Start | _: Backward) =>
if (msg == Start) { // new epoch
...
}
val (x, y) = batch
wire.next ! Forward(x)
context become endPoint(y)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment