[Mlir-commits] [mlir] [mlir-lsp] Support outgoing requests (PR #90078)

River Riddle llvmlistbot at llvm.org
Thu Apr 25 09:29:47 PDT 2024


================
@@ -171,14 +171,44 @@ class MessageHandler {
     };
   }
 
+  /// Create an OutgoingMessage function that, when called, sends a request with
+  /// the given method and ID via the transport. Should the outgoing request be
+  /// met with a response, the response callback is invoked to handle that
+  /// response.
+  template <typename T>
+  OutgoingMessage<T> outgoingRequest(
+      llvm::StringLiteral method, llvm::json::Value id,
----------------
River707 wrote:

You don't want to bind the `id` on registration, because that should generally change per invocation -> The id is the connection between the request and the response. 

https://github.com/llvm/llvm-project/pull/90078


More information about the Mlir-commits mailing list