Updated method signature in MPPTaskRunner
This commit is contained in:
parent
fe7bb92859
commit
33a34de03b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user