bleak/examples
David Lechner 28d26b6e5d examples: use context manager in detection_callback.py
If we don't use a context manager, then we can get the following error
after a CTRL+C:

    Exception ignored in: <function BleakScannerWinRT.start.<locals>.<lambda> at 0x0000020C3A76EE80>
    Traceback (most recent call last):
    File "C:\Users\david\Documents\GitHub\bleak\bleak\backends\winrt\scanner.py", line 238, in <lambda>
        lambda s, e: event_loop.call_soon_threadsafe(self._received_handler, s, e)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\david\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 840, in call_soon_threadsafe
        self._check_closed()
    File "C:\Users\david\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 541, in _check_closed
        raise RuntimeError('Event loop is closed')
    RuntimeError: Event loop is closed
2024-07-02 11:25:08 -05:00
..
kivy sort imports with isort 2024-04-28 19:42:30 -05:00
__init__.py Initial commit. 2018-04-26 23:15:40 +02:00
async_callback_with_queue.py sort imports with isort 2024-04-28 19:42:30 -05:00
detection_callback.py examples: use context manager in detection_callback.py 2024-07-02 11:25:08 -05:00
disconnect_callback.py sort imports with isort 2024-04-28 19:42:30 -05:00
discover.py backends: filter discovered devices 2024-05-22 19:54:04 -05:00
enable_notifications.py Examples: added debug flag (#1153) 2022-11-28 17:21:46 -06:00
mtu_size.py sort imports with isort 2024-04-28 19:42:30 -05:00
philips_hue.py sort imports with isort 2024-04-28 19:42:30 -05:00
scan_iterator.py run black after updating from v22 to v24 2024-04-28 17:43:46 -05:00
sensortag.py BleakClient.write_gatt_char: change handling of default response 2023-07-20 17:10:39 -05:00
service_explorer.py backends/winrt: fix max pdu update race 2024-04-28 20:56:30 -05:00
two_devices.py sort imports with isort 2024-04-28 19:42:30 -05:00
uart_service.py BleakClient.write_gatt_char: change handling of default response 2023-07-20 17:10:39 -05:00