examples/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: MIT

Directories

Path Synopsis
this example is a pipeline where all 3 stages are sending errors to a separate error channel this pattern might be useful to unblock workers while a separate go routine (or worker pool) prepares a list of errors for an api response
this example is a pipeline where all 3 stages are sending errors to a separate error channel this pattern might be useful to unblock workers while a separate go routine (or worker pool) prepares a list of errors for an api response
futureideas
seq command
the seq package would allow you to work with gather without directly using channels below is an example of using a slice as input and then iterating through iter.Seq Note that you can break the loop any time without having to manually cancel the context or close any channel
the seq package would allow you to work with gather without directly using channels below is an example of using a slice as input and then iterating through iter.Seq Note that you can break the loop any time without having to manually cancel the context or close any channel
sharding command
this example shows how the experimental shard package can be used
this example shows how the experimental shard package can be used
internal
This example shows how scope.RetryAfter can be utilized by a middleware to implement a retry logic with max retries.
This example shows how scope.RetryAfter can be utilized by a middleware to implement a retry logic with max retries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL