TPL - Continuation

added by bnaya
12/29/2011 8:34:28 AM

2 Kicks, 147 Views

TPL - ContinuationTPL - Continuation this post will discuss TPL Continuation. TPLcontinuation can chain task into a pipeline. when dealing with dependencies between parallel work units, like [encoding -> compression -> encryption], continuation is the API for scheduling work unit upon completion of other work unit. the general idea is quit similar to the old APM pattern (BeginXxx, EndXxx) callback.basic completion the syntax of continuation:Code SnippetTask tsk = Task.Factory.StartNew(() => {/* d...


2 comments

bsenoff
12/28/2011 11:13:36 PM
http://dotnetkicks.com/docs/kickitbadge

how about a dnk kick it badge on these?

dpeterson
12/29/2011 8:33:54 AM
I haven't looked into continuations in the TPL before, this is going to save a lot of crufty code.