package
Version:
v0.0.0-...-a457693
Opens a new window with list of versions in this module.
Published: Jan 11, 2016
License: Apache-2.0, CC-BY-SA-4.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
¶
ChanLoop is implementation of EventLoop based on channels.
Send sends event to channel. Will block if buffer is full.
Start starting to read events from channel in separate goroutines.
All calls after first is no-op.
type Event interface {
Handle()
}
Event is receiving notification from loop with Handle() call.
EventLoop is interface for event loops.
Start starting events processing
Send adding event to loop
NewChanLoop returns ChanLoop with internal channel buffer set to q.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.