The pool.py
module#
Summary#
Create a pool of Mechanical instances. |
Get a list of a given number of available ports starting from a specified port number. |
Description#
This module is for threaded implementations of the Mechanical interface.
Module detail#
- pool.available_ports(n_ports, starting_port=MECHANICAL_DEFAULT_PORT)#
Get a list of a given number of available ports starting from a specified port number.
- Parameters:
- n_ports
int
Number of available ports to return.
- starting_port: int, option
Number of the port to start the search from. The default is
MECHANICAL_DEFAULT_PORT
.
- n_ports