这是一个语法糖。
using System;
using System.Runtime.CompilerServices;
using UnityEngine.ResourceManagement;
using Object = UnityEngine.Object;
public static class IAsyncOperationExtensions
{
public static AsyncOperationAwaiter GetAwaiter(this IAsyncOperation operation)
{
return new AsyncOperationAwaiter(operation);
}
public static AsyncOperationAwaiter<T> GetAwaiter<T>(this IAsyncOperation<T> operation) where T