Core
Pool
Worker pool helper.
3 public methods
Import
from Xenonix.Core import Pool
Configuration
Use Config(...) with these keys where the class exposes configuration.
This object does not expose a public Config table.
Public methods
Create
Creates a new Pool instance.
Create(Workers, Drop=False)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Workers |
Required |
Any valid value |
Workers value used by the operation. |
Drop |
False |
Any valid value |
Turns drop on or off. |
Output
Creates a new Pool object.
Submit
Runs the Submit operation for Pool.
Submit(Callback, *Args, **Kwargs)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Callback |
Required |
Any valid value |
Optional callback function called during processing. |
Args |
*args |
Any valid value |
Args value used by the operation. |
Kwargs |
**kwargs |
Any valid value |
Kwargs value used by the operation. |
Output
Returns True/False to indicate success.
Close
Applies a morphology-style image operation.
Close()
Arguments
No arguments.
Output
Returns success/status or the operation result.