Signature
From void to unit
Issues with void in Cβ―
void in Cβ―Example : ITelemetry
ITelemetryinterface ITelemetry
{
void Run(Action action);
T Run<T>(Func<T> func);
Task RunAsync(Func<Task> asyncAction);
Task<T> RunAsync<T>(Func<Task<T>> asyncFunc);
}Type Void
ITelemetry simplification
ITelemetry simplificationType unit
unitImpact on the function signature
ignore function
ignore functionArrow notation
β Quiz
Last updated