Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jun 20, 2024
1 parent c2bb02b commit 3c84ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using namespace facebook;
/**
Safely holds `jsi::Function` instances, managed by a `jsi::Runtime`.
*/
class FunctionCache: public jsi::NativeState {
class FunctionCache final: public jsi::NativeState {
public:
explicit FunctionCache(jsi::Runtime* runtime);

Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-nitro-modules/cpp/jsi/Promise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace facebook;
`Promise` is not thread-safe: It has to be resolved/rejected
on the same thread and Runtime as it was created on.
*/
class Promise {
class Promise final {
public:
Promise(jsi::Runtime& runtime,
jsi::Function&& resolver,
Expand Down

0 comments on commit 3c84ea9

Please sign in to comment.