Commit Graph

20 Commits

Author SHA1 Message Date
Daniil Fajnberg 80fc91ec47
made `start` "non-async" using meta task 2022-03-30 21:51:19 +02:00
Daniil Fajnberg a72a7cc516
made a bunch of methods "non-async" 2022-03-30 18:16:28 +02:00
Daniil Fajnberg 1beb9fc9b0
`gather_and_close` now automatically locks the pool 2022-03-29 19:43:21 +02:00
Daniil Fajnberg 23a4cb028a
renamed `group_size` to `num_concurrent` in `_map` 2022-03-29 19:34:27 +02:00
Daniil Fajnberg 7e34aa106d
sphinx documentation; adjusted all docstrings; moved some modules to non-public subpackage 2022-03-24 13:38:30 +01:00
Daniil Fajnberg 689a74c678 control interface now supports `TaskPool` instances:
dotted paths to coroutine functions can be passed to the parser as arguments for methods like `map`;
parser supports literal evaluation for the argument iterables in methods like `map`;
minor fixes
2022-03-16 11:27:27 +01:00
Daniil Fajnberg 3d104c979e typo 2022-03-14 18:13:51 +01:00
Daniil Fajnberg a92e646411 improved and extended usage/readme docs; small fixes 2022-03-14 18:09:30 +01:00
Daniil Fajnberg 5dad4ab0c7 implemented TCP socket control; switched example to TCP 2022-02-25 22:42:37 +01:00
Daniil Fajnberg e501a849f3 clarifications and corrections 2022-02-25 19:57:54 +01:00
Daniil Fajnberg c63f079da4 huge update:
introduced meta tasks which are used by `_map()`;
introduced task groups;
ending with `gather_and_close()` now;
pool unittests rewritten accordingly;
two new helper classes
2022-02-24 19:16:24 +01:00
Daniil Fajnberg 4994135062 renamed `num_tasks` in the map-methods to `group_size`; reworded/extended the docstrings 2022-02-19 16:02:50 +01:00
Daniil Fajnberg 024e5db0d4 license & copyright notices; docstrings for each module; extended readme 2022-02-09 23:14:42 +01:00
Daniil Fajnberg bc9d2f243e renamed "closing" a pool to "locking" it 2022-02-08 23:09:33 +01:00
Daniil Fajnberg 36d026f433 more precise comments 2022-02-08 16:24:37 +01:00
Daniil Fajnberg 410e73e68b bugfix for `TaskPool._map`; usage example for `TaskPool` 2022-02-08 16:15:55 +01:00
Daniil Fajnberg 2f0b08edf0 implemented working pool size limit; adjusted tests and examples; small renaming 2022-02-06 13:08:39 +01:00
Daniil Fajnberg 3eae7d803f huge rework; two different task pool classes now 2022-02-05 18:02:32 +01:00
Daniil Fajnberg f45fef6497 usage example; pool close instead of gather 2022-02-04 19:23:09 +01:00
Daniil Fajnberg b3b95877fb client cli and usage example 2022-02-04 16:25:44 +01:00