package
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Documentation
¶
Package event implements python's threading.Event api using golang primitives.
Event is a communication primitive allowing for multiple goroutines to wait
on an event to be set.
New creates a new event instance.
Clear resets the internal event state back to false.
IsSet indicates whether an event is set or not.
Set changes the internal state of an event to true.
Wait blocks until the event is set to true. If the event is already set,
returns immediately. Otherwise blocks until another goroutine sets the event.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.