oetzi/echo — Issue #50: There should be a toggle helper
Author: oetzi
Created: 2012-01-19 14:18:16+00:00
State: open
Labels: behaviours

There should be a toggle function on Behaviour that produces a new Behaviour that toggles between itself and another every time an event occurs:

toggle(event : EventSource[A], behaviour : Behaviour[T]) : Behaviour[T]