public static string read(int timeoutMilliseconds) { using (var readLine = new ReadLineTimeout()) { readLine._backgroundResponseReset.Set(); return(readLine._foregroundResponseReset.WaitOne(timeoutMilliseconds) ? readLine._input : null); } }
public static string read(int timeoutMilliseconds) { using (var readLine = new ReadLineTimeout()) { readLine._backgroundResponseReset.Set(); return readLine._foregroundResponseReset.WaitOne(timeoutMilliseconds) ? readLine._input : null; } }