Require Unity 2021.3.6f1
Type t
is awaitable if one of the following holds:
t
is of compile-time type dynamict
has an accessible instance or extension method calledGetAwaiter
with no parameters and no type parameters, and a return typeA
for which all the following hold:A
implements the interfaceSystem.Runtime.CompilerServices.INotifyCompletion
A
has an accessible, readable instance propertyIsCompleted
of typebool
A
has an accessible instance methodGetResult
with no parameters and no type parameters