Documentation ¶
Overview ¶
Package gchan provides graceful channel for safe operations.
It's safe to call Chan.Push/Close functions repeatedly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan struct {
// contains filtered or unexported fields
}
func (*Chan) Close ¶
func (c *Chan) Close()
Close closes the channel. It is safe to be called repeatedly.
func (*Chan) Pop ¶
func (c *Chan) Pop() interface{}
Pop pops value from channel. If there's no value in channel, it would block to wait.
Click to show internal directories.
Click to hide internal directories.