Top 2.5% dependent packages on proxy.golang.org
Top 2.1% dependent repos on proxy.golang.org
Top 9.0% forks on proxy.golang.org
proxy.golang.org : github.com/puppetlabs/leg/scheduler
Package scheduler provides a managed API to Goroutines using Lifecycles. The most basic type of management is using the Schedulable interface with a Scheduler: Schedulers terminate when all of their children exit. You can choose from three canned error behaviors for most lifecycles: ErrorBehaviorDrop, ErrorBehaviorCollect, and ErrorBehaviorTerminate. ErrorBehaviorDrop ignores errors, allowing the lifecycle to continue executing normally. ErrorBehaviorCollect stores all errors returned (potentially allowing for unbounded memory growth, so use with discretion) and provides them when the lifecycle completes. ErrorBehaviorTerminate causes the lifecycle to close as soon as it receives an error. You may implement your own error behaviors by conforming to the ErrorBehavior interface. If you have a few lifecycles that are parameterized differently and you want to manage them together, the Parent lifecycle aggregates them and runs them in parallel. This package also provides a more sophisticated lifecycle, Segment. A Segment provides a worker pool and a mechanism for dispatching work. Dispatchers implement the Descriptor interface and work items implement the Process interface. The example above could equivalently be written as follows: Descriptors are particularly useful when asynchronously waiting on events from external APIs for processing.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/puppetlabs/leg/scheduler
Keywords:
relay
License: Apache-2.0
Latest release: over 4 years ago
First release: almost 5 years ago
Namespace: github.com/puppetlabs/leg
Dependent packages: 5
Dependent repositories: 6
Stars: 6 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago
github.com/puppetlabs/leg/timeutil v0.5.0
Relay's library of useful Go tools7 versions - Latest release: almost 3 years ago - 12 dependent packages - 13 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/relspec v0.1.0
Relay's library of useful Go tools1 version - Latest release: over 3 years ago - 1 dependent package - 1 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/jsonutil v0.3.0
Relay's library of useful Go tools5 versions - Latest release: over 3 years ago - 2 dependent packages - 5 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/gvalutil v0.3.0
Relay's library of useful Go tools3 versions - Latest release: over 3 years ago - 3 dependent packages - 5 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/k8sutil v0.7.0
Relay's library of useful Go tools19 versions - Latest release: over 3 years ago - 4 dependent packages - 7 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/httputil v0.1.5
Relay's library of useful Go tools6 versions - Latest release: over 3 years ago - 2 dependent packages - 4 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/vaultutil v0.1.2
Relay's library of useful Go tools3 versions - Latest release: over 3 years ago - 1 dependent package - 1 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/encoding v0.2.0
Relay's library of useful Go tools2 versions - Latest release: almost 4 years ago - 6 dependent packages - 10 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/errmap v0.1.1
Relay's library of useful Go tools2 versions - Latest release: about 4 years ago - 9 dependent packages - 10 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/message v0.1.0
Relay's library of useful Go tools1 version - Latest release: over 4 years ago - 6 stars on GitHub
github.com/puppetlabs/leg/sqlutil v0.1.2
Relay's library of useful Go tools3 versions - Latest release: almost 5 years ago - 6 stars on GitHub
github.com/puppetlabs/leg/mainutil v0.1.2
Relay's library of useful Go tools3 versions - Latest release: almost 5 years ago - 3 dependent packages - 6 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/lifecycle v0.2.0
Relay's library of useful Go tools2 versions - Latest release: almost 5 years ago - 5 dependent packages - 7 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/mathutil v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 6 dependent packages - 13 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/instrumentation v0.1.5
Relay's library of useful Go tools6 versions - Latest release: almost 5 years ago - 4 dependent packages - 6 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/storage v0.1.1
Relay's library of useful Go tools2 versions - Latest release: almost 5 years ago - 1 dependent package - 4 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/graph v0.1.1
Package gographt provides interfaces and data structures that describe discrete graphs. It is ins...2 versions - Latest release: almost 5 years ago - 4 dependent packages - 5 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/datastructure v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 10 dependent packages - 10 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/netutil v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 3 dependent packages - 6 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/request v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 4 dependent packages - 6 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/hashutil v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 1 dependent package - 4 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/workdir v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 1 dependent package - 5 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/stringutil v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 3 dependent packages - 7 dependent repositories - 6 stars on GitHub
github.com/puppetlabs/leg/logging v0.1.0
Relay's library of useful Go tools1 version - Latest release: almost 5 years ago - 6 dependent packages - 8 dependent repositories - 6 stars on GitHub