mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 18:21:13 -03:00
Add a timeout of 2 seconds queries; if any query takes longer, warn about that and reduce the timeout so we stop blocking the UI. This 2 second delay could also happen when network latency is momentarily really high, so we might want relax this in future. Note that this timeout is only triggered by a single uninterrupted poll() (and measured from the start of poll(), which should happen shortly after sending the query). Any polls interrupted by signals or uvars/IO port before the timeout would be hit do not matter. We could change this in future. Closes #11108 Closes #11117