chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package resilience
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
func RetryWithContext(
|
||||
ctx context.Context,
|
||||
attempts int,
|
||||
delay time.Duration,
|
||||
fn func(context.Context) error,
|
||||
) error {
|
||||
panic("TODO: ponawiaj fn(ctx) do attempts razy, respektując ctx.Done() podczas czekania delay")
|
||||
}
|
||||
Reference in new issue
Block a user