Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Outlet ¶
type Outlet struct {
// contains filtered or unexported fields
}
Outlet struct is used to be passed to an object which needs an outlet
The difference between signal and done channel is as following:
- signal channel can be added through SetSignal and is used to interrupt events sent through OnEventSignal-
- done channel is used to close and stop the outlet
If SetSignal is used, it must be ensure that there is only one event producer.
func (*Outlet) OnEventSignal ¶
OnEventSignal can be stopped by the signal that is set with SetSignal This does not close the outlet. Only OnEvent does close the outlet. If OnEventSignal is used, it must be ensured that only one producer is used.
Click to show internal directories.
Click to hide internal directories.