evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

Add `map_using` to `starmap` and add more `.using_processes`/`.using_threads` methods #808

Open evhub opened 9 months ago

evhub commented 9 months ago

Should add a map_using keyword argument to starmap and use it to add starmap.using_processes and starmap.using_threads.

We should also probably set

map.using_processes = process_map
map.using_threads = thread_map

and make sure all of these properties are supported in the type stub.

We can also potentially add .using_async for these as well.