Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ldcontext/builder_multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const defaultMultiBuilderCapacity = 3 // arbitrary value based on presumed likel
// A MultiBuilder should not be accessed by multiple goroutines at once. Once you have called
// [MultiBuilder.Build], the resulting Context is immutable and safe to use from multiple
// goroutines.
//
// Deprecated: use [ContextBuilder] instead.
type MultiBuilder struct {
contexts []Context
contextsCopyOnWrite bool
Expand All @@ -37,6 +39,8 @@ type MultiBuilder struct {
//
// This method is for building a [Context] that has multiple [Context.Kind] values, each with its
// own nested Context. To define a single context, use [NewBuilder] instead.
//
// Deprecated: use [NewContextBuilder] instead.
func NewMultiBuilder() *MultiBuilder {
return &MultiBuilder{contexts: make([]Context, 0, defaultMultiBuilderCapacity)}
}
Expand Down
Loading