Question Details

No question body available.

Tags

c# asynchronous task-parallel-library continuewith

Answers (1)

January 21, 2026 Score: 4 Rep: 79,332 Quality: Medium Completeness: 50%

ContinueWith was around before await came along. You don't need ContinueWith, it's needlessly complex, and await takes away all of that.

Just use a normal function with await. And generally avoid using .Result as you can risk deadlocks in some cases.

overAllTask = OverAllTask();

public async Task OverAllTask() { var logModel = await ParseLogLine(logLine); logModel = await NormalizeParsedData(logModel); await AddParsedData(parsedLogModelTask); }