ensure_future on winrt as well.
@@ -736,7 +736,7 @@ class BleakClientWinRT(BaseBleakClient):
if inspect.iscoroutinefunction(callback):
def bleak_callback(s, d):
- asyncio.create_task(callback(s, d))
+ asyncio.ensure_future(callback(s, d))
else:
bleak_callback = callback
