Document extension concurrency and ownership

This commit is contained in:
2026-11-26 03:09:32 +00:00
parent fed376351f
commit 753cd2081c
11 changed files with 54 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ type Preparation[T any] func(context.Context) (PreparedOperation[T], error)
// operation; callers must not mutate shared input through them. Existing source
// and reference isolation boundaries still apply. Core does not promise a
// general deep copy of domain values or callback captures.
// Callbacks are operation-scoped; extensions must finish any background work
// before releasing borrowed inputs or collaborators. The runner joins its own
// dispatched calls, not arbitrary goroutines started by an extension.
type PreparedOperation[T any] interface {
preparedOperation()
operationType(T)