Document extension concurrency and ownership
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user