mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
19 lines
377 B
C#
19 lines
377 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Spectre.Console.Testing
|
|
{
|
|
internal sealed class NoopExclusivityMode : IExclusivityMode
|
|
{
|
|
public T Run<T>(Func<T> func)
|
|
{
|
|
return func();
|
|
}
|
|
|
|
public async Task<T> Run<T>(Func<Task<T>> func)
|
|
{
|
|
return await func().ConfigureAwait(false);
|
|
}
|
|
}
|
|
}
|