Why do we need Task.ContinueWith()
method. Cannot we just write that "continuation code" inside Task body?
Sometimes you receive a Task from the outside and want to chain your continuation to it. There are also ways to create a task without an Action (e.g. using TaskCompletionSource).