tuyoogame / huatuo

huatuo是一个特性完整、零成本、高性能、低内存的近乎完美的Unity全平台原生c#热更方案。 Huatuo is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotfix
MIT License
2.31k stars 377 forks source link

TaskCompletionSource<T>有问题 #17

Closed wumiao1990 closed 2 years ago

wumiao1990 commented 2 years ago

var tcs1 = new TaskCompletionSource(); public class VerifyTest { public string s; public string Address; } 上面的代码在AOT中使用

` public static async void Enter() { Debug.Log("Send---a"); await Send(); } public static async Task Send() { var tcs = new TaskCompletionSource(); Debug.Log("Send---b");

}`

VerifyTest声明在AOT的代码中,TaskCompletionSource已经在AOT中注册,调用Enter时会出错:MissingMethodException:MethodPointerNotImplement System.Void System.Threading.Tasks.TaskCompletionSource'1[t_RecursiveFallbackBytes]:ctor()

pirunxi commented 2 years ago

确认bug。已修复。