             writeQueue.append(sendOpcode)
         }
         
+        writePending()
+        
         return sendOpcode.id
     }
-    
-    /*
-    public func cancel(_ identifier: UInt) {
-        
-        writePending?()
-    }
-    
-    public func cancelAll() {
-        
-        writePending?()
-    }*/
     
     // MARK: - Private Methods
     

        
        // send the remaining indications
        if indicationQueue.isEmpty == false {
            try await writePending()
        }
    }
    

        // success!
        try sendOperation.handle(data: data)
        
        writePending()
    }
    
    private func handle(confirmation data: Data, opcode: ATTOpcode) throws {
        
        // Disconnect the bearer if the confirmation is unexpected or the PDU is invalid.
        guard let sendOperation = pendingIndication
