Class StressTest
Namespace: NanoByte.Common.Threading
Assembly: NanoByte.Common.dll
Syntax
public static class StressTest : Object
Methods
Run(Action, Int32)
Runs the given action
many times in parallel.
Declaration
public static void Run(Action action, int threadCount = 100)
Parameters
Type | Name | Description |
---|---|---|
Action | action | |
Int32 | threadCount |
Exceptions
Type | Condition |
---|---|
AggregateException | One or more of the executions of the action threw an exception. |