def set_flowcontrol(self, name, direction, value=None, default=False,
                        disable=False):
        if value is not None:
            if value not in ['on', 'off']:
                raise ValueError('invalid flowcontrol value')

        if direction not in ['send', 'receive']:
            raise ValueError('invalid direction specified')

        commands = ['interface %s' % name]
        commands.append(self.command_builder('flowcontrol %s' % direction,
                                             value=value, default=default,
                                             disable=disable))
        return self.configure(commands)
Return the number of threads belonging to the process.
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py/EthernetInterface.set_flowcontrol--crossover with--dataset/ETHPy150Open packages/psutil/psutil/_psosx.py/Process.get_process_threads