mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Migrate to AnyInvocable in platform code
PiperOrigin-RevId: 504104740
This commit is contained in:
committed by
Copybara-Service
parent
7f34968b78
commit
f4d85f9b90
@@ -14,7 +14,6 @@
|
||||
|
||||
#import "internal/platform/implementation/apple/timer.h"
|
||||
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
||||
#include "internal/platform/implementation/timer.h"
|
||||
@@ -22,7 +21,7 @@
|
||||
namespace nearby {
|
||||
namespace apple {
|
||||
|
||||
bool Timer::Create(int delay, int interval, std::function<void()> callback) { return true; }
|
||||
bool Timer::Create(int delay, int interval, absl::AnyInvocable<void()> callback) { return true; }
|
||||
|
||||
bool Timer::Stop() { return true; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user