Distribute a Python function without changing callers
Use direct_task for blocking calls, sync tests, and worker execution.
You have a Python function that processes one item. You call it in a loop. The list grows, and the loop slows down because each call waits on I/O: an API request, a database query, a scrape, an embedding, a model call.
[Read More]