Skip to content

Commit 686bb71

Browse files
authored
Deprecate method retrieval in module (#13913)
1 parent 646e0c4 commit 686bb71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extension/module/module.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ class Module {
206206
}
207207

208208
/**
209+
* DEPRECATED: Module manages each Method exclusively.
210+
*
209211
* Get a method by it's name. Not recommended to use this method directly as
210212
* an end user. It's exposed to allow for composability of module in apis that
211213
* operate on method.
@@ -215,7 +217,8 @@ class Module {
215217
* @returns A Result object containing either a pointer to the requested
216218
* method or an error to indicate failure.
217219
*/
218-
ET_NODISCARD runtime::Result<Method*> method(const std::string& method_name);
220+
ET_DEPRECATED ET_NODISCARD runtime::Result<Method*> method(
221+
const std::string& method_name);
219222

220223
/**
221224
* Load the 'forward' method from the program and set up memory management if

0 commit comments

Comments
 (0)