Migrate to AnyInvocable in platform code

PiperOrigin-RevId: 504104740
This commit is contained in:
Janusz Sobczak
2023-01-23 16:04:21 -08:00
committed by Copybara-Service
parent 7f34968b78
commit f4d85f9b90
100 changed files with 449 additions and 494 deletions
@@ -15,7 +15,7 @@
#import "internal/platform/implementation/apple/ble.h"
#include <CoreBluetooth/CoreBluetooth.h>
#include <functional>
#include <string>
#include <utility>
@@ -283,7 +283,7 @@ bool BleServerSocket::Connect(std::unique_ptr<BleSocket> socket) {
return true;
}
void BleServerSocket::SetCloseNotifier(std::function<void()> notifier) {
void BleServerSocket::SetCloseNotifier(absl::AnyInvocable<void()> notifier) {
absl::MutexLock lock(&mutex_);
close_notifier_ = std::move(notifier);
}