On Fri, Jan 8, 2016 at 3:56 PM, Monte Goulding <mo...@appisle.net> wrote:

>
> One thing that might work to avoid having multiple callbacks would be
> completion handler style blocks. This would be particularly helpful if
> their variable scope included the locals in the parent handler. This would
> also give us the choice of declaring a callback either inside or outside
> the current handler.
>
> Using Mark’s example:
>
> on processThing
>  load url "..." with block pResultCode, pData, pError
>    ---
>  end block
> end processThing
>
> — OR
>
> on processThing
>  load url "..." with processThing2
> end processThing
>
> block processThing2 pResultCode, pData, pError
>  --
> end processThing2


Monte,

I don't see how you would cancel a running operating with the block
example. With your queue idea then you can delete the queue to effectively
cancel it.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.com    -    www.clarify-it.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to