3 ms·
If you check out the test file[1] in the repository for deco, it looks like you can specify the number of cores by setting the "processes" attribute of the conc
by tomkinstinch 10y ago
If you check out the test file[1] in the repository for deco, it looks like you can specify the number of cores by setting the "processes" attribute of the concurrent-decorated function [object].
1. https://github.com/alex-sherman/deco/blob/master/conc_test.py#L27 https://github.com/alex-sherman/deco/blob/master/conc_test.p...
https://github.com/alex-sherman/deco/blob/cee63391bf4c6d66ee40628fb6ab61e62d3bc236/deco/conc.py#L112-L117 https://github.com/alex-sherman/deco/blob/cee63391bf4c6d66ee...