Creates a new function based upon an other function which will handle exceptions. Use this to wrap safe functions for tasks.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Func<T> CreateSafeFunction<T>(
Func<T> function
)
|
Visual Basic |
---|
Public Shared Function CreateSafeFunction(Of T) ( _
function As Func(Of T) _
) As Func(Of T) |
Visual C++ |
---|
public:
generic<typename T>
static Func<T>^ CreateSafeFunction(
Func<T>^ function
) |
Type Parameters
- T
- The return type of the function.
Return Value
The safe function.
See Also