Updated method signature in MPPTaskRunner

This commit is contained in:
Prianka Liz Kariat 2023-03-02 19:50:00 +05:30
parent fe7bb92859
commit 33a34de03b
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@ NS_ASSUME_NONNULL_BEGIN
* Shuts down the C++ task runner. After the runner is closed, any calls that send input data to the
* runner are illegal and will receive errors.
*/
- (absl::Status)close;
- (BOOL)closeWithError:(NSError **)error;
- (instancetype)init NS_UNAVAILABLE;

View File

@ -63,8 +63,9 @@ using TaskRunnerCpp = ::mediapipe::tasks::core::TaskRunner;
return [MPPCommonUtils checkCppError:sendStatus toError:error];
}
- (absl::Status)close {
return _cppTaskRunner->Close();
- (BOOL)closeWithError:(NSError **)error {
absl::Status closeStatus = _cppTaskRunner->Close();
return [MPPCommonUtils checkCppError:closeStatus toError:error];
}
@end