package
Version:
v0.20.0
Opens a new window with list of versions in this module.
Published: Nov 11, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package syncutil contains methods for working with sync code.
A OnceMap is a collection sync.Onces accessible by a key. The zero value is usable.
func (o *OnceMap[T]) Do(key T, f func())
Do runs f once.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.