Types in Base2art.Threading

Interfaces

IEnsurer

An interface that represents a class that invokes a method one and only one time, in a thread-safe manner. Similar to the System.Lazy`1, but with an System.Action instead of System.Func`1.

ILazy`1

An interface that represents a class that invokes a method to create a value one and only one time, in a thread-safe manner. Similar to the System.Lazy`1

Classes

OneTryEnsurer

A class that implements Base2art.Threading.IEnsurer, When the action invocation throws an exception all following invocations are garanteed to also throw exceptions.

OneTryLazy`1

A class that implements Base2art.Threading.ILazy`1, When the funcion invocation throws an exception all following invocations are garanteed to also throw exceptions.

RetryEnsurer

A class that implements Base2art.Threading.IEnsurer, When the action invocation throws an exception this class will throw the exception one time and retry on subsequent invocations.

RetryLazy`1

A class that implements Base2art.Threading.ILazy`1, When the function invocation throws an exception this class will throw the exception one time and retry on subsequent invocations.