cefn / watchable

Repo for @watchable/store and supporting packages.
MIT License
5 stars 1 forks source link

Introduce createExecutorStrategy - pipeline arbitrary async functions on the fly #54

Closed cefn closed 9 months ago

cefn commented 9 months ago

This PR creates a createExecutorStrategy() that accepts NevermoreOptions like {concurrency: 3} {retries:7} and so on.

Creating a nevermore executor strategy exposes a createExecutor() function that you can use to wrap any async operation. This wrapped function will be identical in signature to the original, but will limited by the specified pipeline when executed.