Juliet Levesque 240159e872 [Nearby Connections] Stop 3 AttemptsToConnect over WebRTC for CancellationFlag
CancellationFlags will be used to prevent crashes during the shutdown of Nearby Connections from pending tasks taking too long during the shutdown period. WebRTC using 3 x 10s retries to connect, which means we are potentially waiting for 30 seconds of retries to execute during shutdown (which is longer than the 10s duration alloted for Core shutdown).

By using CancellationFlags, we can prevent the retries occuring during the Shutdown by short-circuiting an in flight AttemptToConnect, and checking for Cancellation before retries.

PiperOrigin-RevId: 539690403
2023-06-12 10:16:36 -07:00
.
2023-06-07 19:16:08 +00:00
2023-05-22 10:28:16 -07:00
2023-06-05 22:46:43 +00:00
2023-04-01 15:25:02 -04:00
2023-06-05 22:46:43 +00:00
2023-03-14 00:11:18 -07:00
2023-03-22 13:33:59 -07:00
.
2023-06-07 20:40:42 +00:00

Nearby

Nearby is a collection of projects focused on connectivity that enable building cross-device experiences.

This is not an officially supported Google product.

Projects

Nearby Connections

A peer-to-peer networking API that allows apps to easily discover, connect to, and exchange data with nearby devices in real-time, regardless of network connectivity.

Fast Pair

Utilizes Bluetooth Low Energy (BLE) to discover nearby Bluetooth devices without using significant phone battery, enabling "magical" scenarios based on device proximity.

Nearby Presence

An extension to Nearby Connections that features an extensible identity model for authentication and restricted visibility, resource management for system health, and proximity detection through sensor fusion.

Nearby for Embedded Systems

A lightweight implementation of Fast Pair intended for embedded systems.

Contributing

We encourage you to contribute to Nearby! Please check out the Contributing to Nearby guide for guidelines about how to proceed.

License

Nearby is released under the Apache License 2.0

Languages
C++ 97.6%
Objective-C 1.1%
Objective-C++ 0.6%
Starlark 0.3%
C 0.2%
Other 0.1%