Is it possible to get an asynchronous method's return value without invoking GetAwaiter().GetResult() ? #119
Replies: 4 comments 1 reply
-
I don't know if I understood correctly, but you could just intercept |
Beta Was this translation helpful? Give feedback.
-
Intercept UniTask.Awaiter.GetResult() failed, it never been invoked. |
Beta Was this translation helpful? Give feedback.
-
(I'm moving this to discussions btw)
You can call
Failed because you are intercepting a |
Beta Was this translation helpful? Give feedback.
-
The struct I said is a C# struct, not NativeStruct or something.
Of course I intercepted it's virtual address. I mean, if I intercept with |
Beta Was this translation helpful? Give feedback.
-
I'm observing a game's communication by intercept
UniTask<T> is a C# struct like ValueTask, can't use
new Il2Cpp.Object(args[2]).method("xxx")
, and if UniTask awaits multiple times, it will throw an exception. So even I can invoke GetAwaiter().GetResult() to get TResponse, game will crashed because of unitask. Do anyone has advice?Beta Was this translation helpful? Give feedback.
All reactions