package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Aug 15, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Pipe struct {
Sender Sender
Receiver Receiver
OnReceiveCompletion func()
OnSendCompletion func()
}
type Receiver interface {
Receive() bool
Cancel()
Status() Status
Request() interface{}
}
type Request struct {
Payload interface{}
Canceled bool
}
type Sender interface {
Request() Request
Update(v interface{})
Finalize(v interface{}, err error)
Status() Status
}
type Status struct {
Canceled bool
Completed bool
Err error
Value interface{}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.