package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: May 11, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type WriteOnce[T any] struct {
}
WriteOnce 保证对应的val只会被写入一次,读取值时若未被写入,则等待直至值被其他goroutine写入
Source Files
¶
Click to show internal directories.
Click to hide internal directories.