Documentation ¶
Index ¶
- Constants
- Variables
- type Broadcast
- type Flow
- func (f *Flow) Add(n int)
- func (f *Flow) AddOnClose(exit func()) *Flow
- func (f *Flow) Close()
- func (f *Flow) CloseOrWait(duration time.Duration) bool
- func (f *Flow) Done()
- func (f *Flow) DoneAndClose()
- func (f *Flow) Error(err error)
- func (f *Flow) Errorf(layout string, obj ...interface{})
- func (f *Flow) Fork(n int) *Flow
- func (f *Flow) ForkTo(ref **Flow, exit func())
- func (f *Flow) GetDebug() []byte
- func (f *Flow) IsClose() chan struct{}
- func (f *Flow) IsClosed() bool
- func (f *Flow) IsExit() bool
- func (f *Flow) MarkExit() bool
- func (f *Flow) SetOnClose(exit func()) *Flow
- func (f *Flow) Stop()
- func (f *Flow) StopAll()
- func (f *Flow) Tick(t *time.Ticker) bool
- func (f *Flow) Wait() error
- func (f *Flow) WaitNotify(ch chan struct{}) bool
Constants ¶
View Source
const ( F_CLOSED = true F_TIMEOUT = false )
Variables ¶
View Source
var (
DefaultDebug = true
)
View Source
var ErrCanceled = errors.New("operation is canceled")
Functions ¶
This section is empty.
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
func NewBroadcast ¶
func NewBroadcast() *Broadcast
type Flow ¶
func (*Flow) AddOnClose ¶
func (*Flow) DoneAndClose ¶
func (f *Flow) DoneAndClose()
func (*Flow) SetOnClose ¶
func (*Flow) WaitNotify ¶
Click to show internal directories.
Click to hide internal directories.