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

@@ -37,7 +37,8 @@ type SerializedOutput struct {
Artifact SerializedArtifact `json:"artifact"`
}
// ArtifactCodec owns the stable encoding for one concrete artifact type.
// ArtifactCodec owns the stable encoding for one concrete artifact type. The
// registered instance is shared and its methods may be called concurrently.
type ArtifactCodec[T any] interface {
Kind() ArtifactKind
Schema() ArtifactSchema