Akka.Tests.Performance.Actor.Pattern.AskSpec.TearDown C# (CSharp) Method

TearDown() private method

private TearDown ( BenchmarkContext context ) : void
context NBench.BenchmarkContext
return void
        public void TearDown(BenchmarkContext context)
        {
            var shutdownTimeout = TimeSpan.FromSeconds(5);
            try
            {
                _sys?.Terminate().Wait(shutdownTimeout);
            }
            catch (Exception ex)
            {
                context.Trace.Error(ex, $"failed to shutdown actorsystem within {shutdownTimeout}");
            }
        }
    }