Should work for any subtype of Future. Did you encounter any problems?
Regards,
Roland Kuhn
Typesafe — The software stack for applications that scale
twitter: @rolandkuhn
That is not according to the contract for "complete", read the ScalaDoc.
> .....
> }
>
> which basically wraps the DefaultPromise _promise:
> _promise = new
> DefaultPromise<T>( ActorSystemSingleton.get().dispatcher() );
>
>
> Now I have a typed-actor "task" which implements the following method:
>
> public Promize<Object> update(String msg)
> {
> _extractedText = msg;
> return new Promize<Object>().complete( new Right<Throwable,
> Object>(null) );
What is this?
> }
>
> which gets called by:
> Promize<Object> p = task.update( d.extractText(data) );
>
> However, it seems that before reaching the row "return new
> Promize<Object>().complete( new Right<Throwable, Object>(null) );" the
> following
> exception gets thrown by the proxy of "task":
>
> akka.dispatch.DefaultPromise cannot be cast to
> com.cisco.www.irrupt.remoteservices.businesslayer.tasks.Promize
> java.lang.ClassCastException: akka.dispatch.DefaultPromise cannot be
> cast to
> com.cisco.www.irrupt.remoteservices.businesslayer.tasks.Promize
> at $Proxy7.update(Unknown Source)
>
> Any idea?
>
> Regards
>
> R4DIUM
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>
--
Viktor Klang
Akka Tech Lead
Typesafe - The software stack for applications that scale
Twitter: @viktorklang
What is the return type of the complete method in the docs:
http://akka.io/api/akka/2.0-M4/#akka.dispatch.Promise
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.