mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-27 00:08:02 +01:00
14 lines
290 B
C#
14 lines
290 B
C#
namespace Spectre.Console.Testing;
|
|
|
|
internal sealed class NoopExclusivityMode : IExclusivityMode
|
|
{
|
|
public T Run<T>(Func<T> func)
|
|
{
|
|
return func();
|
|
}
|
|
|
|
public async Task<T> RunAsync<T>(Func<Task<T>> func)
|
|
{
|
|
return await func().ConfigureAwait(false);
|
|
}
|
|
} |