def connection(self, type=None, source=True, destination=True, plug=False, unit=None):
    'Return first connection from :func:`connections()`'
    return next(self.connections(type=type, source=source, destination=destination, plugs=plug, unit=unit), None)
Return first connection from :func:`connections()`
def connection(self, type=None, source=True, destination=True, plug=False, unit=None):
    
    return next(self.connections(type=type, source=source, destination=destination, plugs=plug, unit=unit), None)