naps2/NAPS2.Sdk/Threading/IInvoker.cs
2021-12-17 12:18:20 -08:00

13 lines
252 B
C#

namespace NAPS2.Threading;
/// <summary>
/// An interface for synchronized access to the UI thread.
/// </summary>
public interface IInvoker
{
void Invoke(Action action);
void SafeInvoke(Action action);
T InvokeGet<T>(Func<T> func);
}