Continuation-Passing Style with Children

There are two recommended styles. They differ in terms of whether it is more convenient to recycle the parent as the continuation or as a child. The decision should be based on whether the continuation or the child acts more like the parent.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.