Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventLoop ¶
type EventLoop struct {
// contains filtered or unexported fields
}
Example ¶
loop := new(EventLoop) loop.Start() loop.Post(&command.PrintCmd{Text: "Hello, I am event loop!"}) loop.AwaitFinish()
Output: Hello, I am event loop!
func (*EventLoop) AwaitFinish ¶
func (loop *EventLoop) AwaitFinish()
Click to show internal directories.
Click to hide internal directories.