public async Task<T> AssignAsync<T>(string key, Func<T> acquire) {}
var result = await AssignAsync<T>(key, () => _repository.FindAsync(id));
报错:无法将 lambda 转制为预期委托类型
func 参数如何传入另一个 async 方法
相关问题
- How to call method with Expression of type Func as
- Passing params through a Func<>
- Is there a way to capture a lambda expression so t
- Cast to Func vs new Func?
- Issues with Generics using Silverlight
相关文章
- C# winform 关于async和await 实际用法过程中,偶尔报错问题
- How do I declare a Func Delegate which returns a F
- C#: Func<> instead of methods? [duplicate]
- async中await是干啥的,用不用有什么区别?
- Conversion from Func<object,string> to Func<
- Func delegate doesn't chain methods
- Cannot assign a delegate of one type to another ev
- Why is Action/Func better than a regular Method in
试试