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

Brian Gesiak llvmlistbot at llvm.org
Thu Apr 25 13:54:08 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,
----------------
modocache wrote:

Ah, thank you, good call. I've updated the patch, please take a look. Also, a little embarrassing, but because I opted to use a different function type `OutgoingRequest<T>` to handle this, if you like this version of the patch then I'll revert #90076 before landing.

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


More information about the Mlir-commits mailing list