Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/ztstewart/workflow

Package workflow is akin to the popular JavaScript library `async`'s `auto` function. That is to say, it runs a series of named tasks in parallel when it can and serially if there are interdependencies between tasks. For example, if we have a task A with no dependencies, and a task B that depends on A, workflow would run A before running B. For a more complex scenario, imagine task A with no dependencies, task B with no dependencies, and task C that depends on both A and B. In this case A and B would be run in parallel while execution of C would wait until both A and B have completed. Let's see this in code: In this example, `taskOne` will run before `taskTwo` does, assuming that `taskOne` does not return an error. `taskOne` will also have the result of `taskTwo` included in the `Results` parameter. If "taskTwo" returns an error, `taskGraph.Run()` will return an error and `taskOne` will not execute. Currently, 2^32 - 1 tasks are supported per workflow.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/ztstewart/workflow
Keywords: async, asynctask, go, golang, golang-library, task-runner
License: BSD-2-Clause
Latest release: over 5 years ago
First release: almost 6 years ago
Namespace: github.com/ztstewart
Stars: 6 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago

    Loading...
    Readme
    Loading...