Inlined callback method into task continuation lambda.