// Copyright (c) Alexander Bogarsukov.
// Licensed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using UnityEngine;
using UnityEngine.Networking;
namespace UnityFx.Tasks.CompilerServices
{
///
/// Provides an awaitable object that allows for configured awaits on .
/// This type is intended for compiler use only.
///
///
///
public struct ResourceRequestAwaitable where T : UnityEngine.Object
{
private readonly ResourceRequestAwaiter _awaiter;
public ResourceRequestAwaitable(ResourceRequest op)
{
_awaiter = new ResourceRequestAwaiter(op);
}
public ResourceRequestAwaiter GetAwaiter()
{
return _awaiter;
}
}
}