[aerogear-dev] "cancel" method on Pipe

Summers Pittman supittma at redhat.com
Thu Feb 14 12:08:32 EST 2013


On 02/14/2013 02:31 AM, Matthias Wessendorf wrote:
> On Mon, Feb 11, 2013 at 4:12 PM, Summers Pittman <supittma at redhat.com> wrote:
>> We have three JIRA's[1] to add a cancel method to Pipe.
>>
>> In Android (and presumably iOS and to a lesser extent JS) Pipes are shared
>> among multiple threads and each request exists in its own scope.  (IE
>> multiple threads can have multiple requests running at one time).
>>
>> When a "cancel" is called, which request is cancelled?
> When calling cancel on a pipe, I'd assume that all enqueued/running
> requests, for that particular pipe, are canceled.
-.15

I don't like it but 99% of the time there will only be one call in the 
Pipe.
What happens on the callbacks?  I would assume either onError would be 
called with an appropriate object/message(+1) or we add an onCancel 
method(-1).

Summers
>
> -Matthias
>
>
>>   I've attempted to address this (and some larger issues) here:
>> https://github.com/aerogear/aerogear.org/blob/pipe_spec/docs/specs/aerogear-client-pipe/index.markdown
>>
>>
>> Summers
>>
>> 1: (898,901,895)
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>



More information about the aerogear-dev mailing list