-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add overwrite flag to simple function registration API (#9158)
Summary: Pull Request resolved: #9158 The `SimpleFunctionRegistry::registerFunction(aliases, constraints)` API used to always overwrite the function registry when the function name and signature already exists. This diff adds an overwrite flag to this API to control the behavior of overwriting. The overwrite flag is true by default. The `SimpleFunctionRegistry::registerFunction(aliases, constraints, overwrite)` API returns a bool that is true only when all aliases are successfully registered. Reviewed By: bikramSingh91 Differential Revision: D55041377 fbshipit-source-id: 76cea41f98de717dd8cea83df7771226d85d8b53
- Loading branch information
1 parent
a54929b
commit b29d933
Showing
7 changed files
with
106 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters