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. |
Click to show internal directories.
Click to hide internal directories.