vlingo / xoom-actors

The VLINGO XOOM platform SDK for the type-safe Actor Model, delivering Reactive concurrency, high scalability, high-throughput, and resiliency using Java and other JVM languages.
https://vlingo.io
Mozilla Public License 2.0
229 stars 28 forks source link

Using andThen on the completes returned from Actor.completes() throws UnsupportedOperationException exception #69

Closed buritos closed 4 years ago

buritos commented 4 years ago
...
public Completes<Integer> boom() {
  return completes().with(1).andThen(one -> one + 1);
}
...

When boom is called on the actor proxy created via World.actorFor it throws:

java.lang.UnsupportedOperationException: null
    at io.vlingo.actors.ResultReturns.andThen(ResultReturns.java:38)

I was expecting a successful Completes with the Integer value 2 inside.

VaughnVernon commented 4 years ago

@buritos My feedback is in Slack. If you want to condense any of that and put it here for later reference that's fine.

VaughnVernon commented 4 years ago

This was fixed by the following and some redesign.

https://github.com/vlingo/vlingo-common/issues/12