File size: 318 Bytes
2e7837a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using System;
using System.Threading.Tasks;
namespace OnDeviceAgent.AgentCore
{
public interface IUnityMainThreadDispatcher
{
bool IsOnMainThread { get; }
void Post(Action action);
Task RunOnMainAsync(Func<Task> work);
Task<T> RunOnMainAsync<T>(Func<Task<T>> work);
}
}
|