IExclusivityMode Interface

Represents an exclusivity mode.
public interface IExclusivityMode
Namespace
Spectre.Console

Methods

abstract T Run<T>(Func<T>)
Runs the specified function in exclusive mode.
abstract Task<T> RunAsync<T>(Func<Task<T>>)
Runs the specified function in exclusive mode asynchronously.

Extension Methods

T And<IExclusivityMode>(Action<IExclusivityMode>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.