Skip to content

Comment on StratifiedJS: Javascript + structured concurrencyparent

Comments

Ah, this is one of the clever bits of StratifiedJS which differentiates it from a lot of the other async extensions out there.

In the case you describe the CNN request will automatically be cancelled by honoring any try/finally or try/retract clauses in the http.get function. (try/retract is a new SJS thing). To see how cancellation/retraction works check out the slides starting at http://onilabs.com/presentations/ugent/cancellation.html .

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.