v1.0.0 beta 9

This commit is contained in:
2026-03-06 11:59:17 +03:00
parent 6cf3355a36
commit 9895edf966
19 changed files with 731 additions and 456 deletions

View File

@@ -13,6 +13,9 @@ type Runner[T DbContext] struct {
fn RunnerFn[T]
}
// NewRunner creates a new Runner with async=true by default.
// Builder methods (Onetime, Async, Timeout) modify the Runner in-place.
// DO NOT call builder methods concurrently or after Execute().
func NewRunner[T DbContext](name string, fn RunnerFn[T]) *Runner[T] {
return &Runner[T]{
name: name, fn: fn, async: true,