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