flow-static-land icon indicating copy to clipboard operation
flow-static-land copied to clipboard

Request: Exercise using Aff w/ Canceler

Open mwalkerwells opened this issue 9 years ago • 1 comments

Not coming from a Purescript background, it'd be super useful to see how to use 'Canceler' to invalidate a long-running computations.

I'm having a hard time understanding what is going while looking through source. If you have time—thanks!

mwalkerwells avatar Sep 15 '16 00:09 mwalkerwells

It looks to me like the Canceler comes into play when you are calling chain with multiple Affs... it seems like if at least one has been canceled, the resulting Aff will be wrapping the Canceler success value.

Let me know if that made any sense at all!

jsonnull avatar Sep 16 '16 07:09 jsonnull