<PackageReference Include="NUnit" Version="5.1.0-beta.1" />

NUnit.Framework.Internal.Commands.CancelAfterRunner

static class CancelAfterRunner
Runs code with a cancellation token that is cancelled when a CancelAfterAttribute timeout expires. Used for tests, the one-time setup and teardown of fixtures, and setup and teardown methods.
namespace NUnit.Framework.Internal.Commands { internal static class CancelAfterRunner { public static bool Run(TestExecutionContext context, int timeout, IDebugger debugger, FailureSite failureSite, Action action); } }