DOCS: dataflow sample does not work
working with variables deadlocks on itself, should be more like
scala> val v1, v2 = Promise[Int]()
v1: akka.dispatch.Promise[Int] = akka.dispatch.DefaultPromise@2fc868cd
v2: akka.dispatch.Promise[Int] = akka.dispatch.DefaultPromise@e58833d
scala> flow { v1 << v2() + 10; v1() + v2() } onComplete println
res4: akka.dispatch.Future[Int] = akka.dispatch.DefaultPromise@628e0edc
scala> flow { v2 << flow { 5 } }
res5: akka.dispatch.Future[akka.dispatch.Future[Int]] = akka.dispatch.DefaultPromise@59b31b1b
scala> Right(20)
Leave a comment
on 2012-11-08 20:53 *
By Heiko Seeberger
Thanks Roland.
Please vote for Heiko for the truffle pig price ;-)
And beside of fixing the code, please make clear (in words) why it has to be that way.
Please vote for Heiko for the truffle pig price ;-)
And beside of fixing the code, please make clear (in words) why it has to be that way.