Create a Task with an Actionlt;T, T, ... ngt; multiple parameters(使用动作创建任务lt;T, T, ... ngt;多个参数)
问题描述
我想在包含 Action 的任务中添加多个参数.我查看了现有的堆栈溢出问题 Create a Task with an Action<T>
I want to add multiple parameter in a Task containing Action. I reviewed the existing stack-overflow question Create a Task with an Action<T>
请帮助我如何在 Task 的 Action 方法中传递多个参数
Kindly assist me how to pass multiple arguments in a Action method in a Task
动作方法是
请帮助我如何创建异步方法的操作以及如何将操作添加到任务中.
Kindly assist me how to Create a action of an async method and how to add the action into the Task.
推荐答案
像这样传参数就行了.
如果你也想得到返回值
这篇关于使用动作创建任务<T, T, ... n>多个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!