dispatchrun / dispatch-py

Python package to develop applications with Dispatch.
https://pypi.org/project/dispatch-py/
Apache License 2.0
56 stars 3 forks source link

Concurrency primitives: any, all, race #131

Closed chriso closed 7 months ago

chriso commented 7 months ago

The SDK provides a gather function to concurrently run coroutines and collect their results. It returns as soon as all results are available, and raises if any coroutine raises.

This PR introduces all, any and race which cover more concurrency use cases. See https://github.com/stealthrocket/dispatch-py/issues/88 for more information.

This fixes https://github.com/stealthrocket/dispatch-py/issues/88.