[Lldb-commits] [lldb] [lldb] Support non-blocking reads in JSONRPCTransport (PR #144610)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 17 15:55:18 PDT 2025
================
@@ -85,7 +85,8 @@ class JSONTransport {
/// Reads the next message from the input stream.
template <typename T>
- llvm::Expected<T> Read(const std::chrono::microseconds &timeout) {
+ llvm::Expected<T>
+ Read(std::optional<std::chrono::microseconds> timeout = std::nullopt) {
----------------
ashgti wrote:
Since this type has moved into `lldb_private` now, should we use the `Timeout` helper? https://github.com/llvm/llvm-project/blob/main/lldb/include/lldb/Utility/Timeout.h#L28
https://github.com/llvm/llvm-project/pull/144610
More information about the lldb-commits
mailing list