Documentation ¶
Index ¶
- type DChan
- func (dc *DChan) Close(ctx context.Context) error
- func (dc *DChan) EnhanceReceiver(ctx context.Context, ch chan interface{}) error
- func (dc *DChan) EnhanceSender(ctx context.Context, ch chan interface{}) error
- func (dc *DChan) MakeReceiver(ctx context.Context) (<-chan interface{}, error)
- func (dc *DChan) MakeSender(ctx context.Context) (chan<- interface{}, error)
- type ErrorHandler
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DChan ¶
type DChan struct {
// contains filtered or unexported fields
}
func (*DChan) EnhanceReceiver ¶
func (*DChan) EnhanceSender ¶
func (*DChan) MakeReceiver ¶
type ErrorHandler ¶
type ErrorHandler func(err error)
type Option ¶
type Option func(c *config) error
func WithErrorHandler ¶
func WithErrorHandler(handler ErrorHandler) Option
Click to show internal directories.
Click to hide internal directories.