tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
NoopSignalChecker.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
6{
10 public sealed class NoopSignalChecker : ISignalChecker
11 {
13 public ValueTask CheckSignals(Func<string?, (int, Task)> startChildAndGetPid, CancellationToken cancellationToken)
14 {
15 ArgumentNullException.ThrowIfNull(startChildAndGetPid);
16 startChildAndGetPid(null);
17 return ValueTask.CompletedTask;
18 }
19 }
20}
ValueTask CheckSignals(Func< string?,(int, Task)> startChildAndGetPid, CancellationToken cancellationToken)
For relaying signals received to the host process.