Structured concurrency: Difference between revisions

Content deleted Content added
Lucenty (talk | contribs)
document a main point of variation, regarding whether cancellation is employed on error; remove redundant sentence in the intro
Lucenty (talk | contribs)
m set -> task tree
Line 8:
 
==Variations==
A major point of variation is how an error in one member of a concurrent settask of taskstree is handled. Simple implementations will merely wait until the children and siblings of the failing task run to completion before propagating the error to the parent scope. However, that could take an indefinite amount of time. The alternative is to employ a general cancellation mechanism (typically a cooperative scheme allowing program invariants to be honored) to terminate the children and sibling tasks in an orderly manner.
 
==See also==