knah/Il2CppAssemblyUnhollower

Async usage of Il2CppSystem.Threading.Tasks.Task<TResult>? Is it possible?

Closed this issue · 1 comments

IMB11 commented

Self explanatory, is it possible to in some way do await on an il2cpp async method?

If you really want to use await
I think it is possible to manually write a IAsyncStateMachine for your method that calls await
On https://sharplab.io/ set right to release and write a dummy async method on the left to see what the compiler will generate