Discover Packages
github.com/myitcv/g
_vendor
src
github.com
rogpeppe
rog-go
exp
example
looper
package
Version:
v0.0.0-...-f3d8a94
Opens a new window with list of versions in this module.
Published: Aug 26, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Looper is an example package demonstrating use of the callback
package. When a new Looper type is made, a new pthread is
created which continually loops calling the callback function
until it returns false.
NewLooper creates a new Looper that continually
calls f until it returns false.
Close marks the Looper as not in use.
It must be called after the looper function
has returned false.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.