rssh / scala-gopher

Implementation of CSP constructions (Communication Sequence Process, i.e. go-like channels) in scala
Apache License 2.0
199 stars 7 forks source link

add 'once' for 'select loop'. #2

Closed rssh closed 11 years ago

rssh commented 11 years ago

I.e. to write something like

for(s <- select.once) { case channelA ~> (x: Int) => do..something case channelB ~>(m:Message) => do something }

as context which executed once.