[infinispan-dev] NotifyingFuture vs Deferred
Mircea Markus
mircea.markus at jboss.com
Fri Oct 22 13:22:58 EDT 2010
On 22 Oct 2010, at 16:11, Galder Zamarreño wrote:
>
> On Oct 21, 2010, at 10:48 AM, 이희승 (Trustin Lee) wrote:
>
>> Deferred is not different from NotifyingFuture fundamentally. The only
>> difference is how it handles an exceptional case and callbacks can
>> return another Deffered, which makes chained asynchronous operations
>> possible.
>>
>> This difference opens a lot of possibilities for performing a series of
>> asynchronous operations. It can be compared to dynamic construction of
>> interceptor chains.
>>
>> So, I'd like to propose to replacing the current NotifyingFuture
>> implementation with Deferred. I think the name 'Deferred' is somewhat
>> less intuitive, so retaining the name might be a good idea.
>>
>> If you are not familiar with Deferreds, check this out:
>>
>> http://twistedmatrix.com/documents/current/core/howto/deferredindepth.html
>
> Just couple of weeks ago I was trying to make some sense of twisted and I gave up, particularly when I started to try to understand this deferred stuff and that tutorial is anything but a tutorial IMO.
+1.
>
> For example, why doesn't the following get printed?
>
> print "\n-------------------------------------------------\n"
>
> Anyway, I need to get a better understand of deferred before I can decide whether deferred should be implemented or not.
>
>>
>> --
>> Trustin Lee - http://gleamynode.net/
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> --
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
More information about the infinispan-dev
mailing list