namespace Spectre.Console; /// /// Represents an exclusivity mode. /// public interface IExclusivityMode { /// /// Runs the specified function in exclusive mode. /// /// The result type. /// The func to run in exclusive mode. /// The result of the function. T Run(Func func); /// /// Runs the specified function in exclusive mode asynchronously. /// /// The result type. /// The func to run in exclusive mode. /// The result of the function. Task RunAsync(Func> func); }