Basically, it asks for a sub with Task as a parameter. That's what Action(of Task) right?
Why?
I know I can pass normal sub to continueWith. I never remember passing a sub that requires a task parameter.
Basically, it asks for a sub with Task as a parameter. That's what Action(of Task) right?
Why?
I know I can pass normal sub to continueWith. I never remember passing a sub that requires a task parameter.
Copyright © 2021 Jogjafile Inc.
It is by the definition. 'ContinueWith' should in most cases operate with the result of 'antecedent' task. If you forget how to call 'ContinueWith', Visual Studio 'Peek Definition' will help you. So, right clicking on 'ContinueWith' and by choosing 'Peek Definition' you will examine the signature. Basically, it looks like is shown in the snippet below.
If it is too complicated, you can use a snippet and save an example and then inserted when you need it.
So, let's create an example.