Discover Packages
github.com/plgd-dev/hub/v2
pkg
sync
task
future
package
Version:
v2.4.7
Opens a new window with list of versions in this module.
Published: Aug 16, 2022
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
Documentation
¶
New constructs new Future.
Use return setter to set value of the future and unblock all routines waiting
on the future. The setter will succeed only once, repeated calls of set do nothing.
Thread-safe facility to obtain/wait for a value from a single producer in
multiple goroutines
Get returns value when it is set.
Ready checks whether value is set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.