Skip to content

Commit

Permalink
exsync: deprecate ReturnableOnce in favor of sync.OnceValues
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 13, 2024
1 parent b00aa5c commit 2ffacf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exsync/returnonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ package exsync
import "sync"

// ReturnableOnce is a wrapper for sync.Once that can return a value
//
// Deprecated: Use [sync.OnceValues] instead.
type ReturnableOnce[Value any] struct {
once sync.Once
output Value
Expand Down

0 comments on commit 2ffacf2

Please sign in to comment.