You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] ShellStream.Expect - Abort if No Match Found Within a Specified Timeout Period #365
The ShellStream Expect method currently supports a timeout as follows:
publicstringExpect(Regexregex,TimeSpantimeout)
I believe that when standard output is detected, examining it is a synchronous operation. Consequently, if the standard output consists of thousands of lines then you have to wait for as long as it takes and there is no way to abort:
I am currently using Expect against a process which can potentially emit thousands of lines to standard output. What I would like is a way to abort Expect if no match is found within a specified period of time.
I am not a C# programmer but am more than happy to conduct some testing and build the project from source if anyone can suggest any changes to make this feature request possible.
Activity
IgorMilavec commentedon Feb 24, 2022
I have created a discussion #926 for all ShellStream related issues.
WojciechNagorski commentedon Feb 22, 2024
This issue has been fixed in the 2024.0.0 version.