forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CDPAgent to take unique_ptr for State
Summary: Changing CDPAgent interface to take `unique_ptr` for State. We should be careful about using `shared_ptr` because it could introduce subtle lifecycle issues. The `DomainAgents::initialize()` still requires a `shared_ptr` because `std::function` is needed to be copyable. `std::move_only_function` is only C++23, so not available to us yet. Reviewed By: huntie Differential Revision: D54437914 fbshipit-source-id: 3d6b54fe0926955e48bc0a03d9d614186699fccf
- Loading branch information
1 parent
f0040cd
commit 314395c
Showing
3 changed files
with
13 additions
and
12 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