Documentation ¶
Overview ¶
Package syncext provides extra functionality on top of the sync package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnceValues3 ¶
func OnceValues3[T1, T2, T3 any](f func() (T1, T2, T3)) func() (T1, T2, T3)
OnceValues3 returns a function that invokes f only once and returns the values returned by f. The returned function may be called concurrently.
If f panics, the returned function will panic with the same value on every call.
This is copied from sync.OnceValues and extended to for three values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.