I have a fire_and_forget method,
fire_and_forget DeviceInfo::Connect()
{
// Pair
DevicePairingResult result = co_await GetDevice().Pairing().PairAsync();
// Connect
m_BluetoothLEDevice = co_await BluetoothLEDevice::FromIdAsync(GetId());
}
I need to come out from this fire_and_forget function after completing all the async methods inside
Please suggest some ideas