Documentation ¶
Index ¶
- func IsCanceled(cc Canceller) bool
- type Cancel
- type CancelContext
- type Canceller
- type Finish
- type Finisher
- type Mission
- func (m *Mission) Abort()
- func (m *Mission) Activate()
- func (m *Mission) AsContext() context.Context
- func (m *Mission) Cancel()
- func (m *Mission) Done()
- func (m *Mission) Link(cc Canceller)
- func (p *Mission) New() *Mission
- func (p *Mission) NewCancel() Canceller
- func (m *Mission) NowaitDone()
- func (m *Mission) Parson() *Mission
- func (m *Mission) Recv() <-chan struct{}
- func (m *Mission) RecvCancel() <-chan struct{}
- func (m *Mission) RecvDone() <-chan struct{}
- type MissionContext
- type Pool
- type PoolFunc
- type PoolWeakFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCanceled ¶
Types ¶
type Cancel ¶
type Cancel struct {
// contains filtered or unexported fields
}
func (*Cancel) RecvCancel ¶
func (c *Cancel) RecvCancel() <-chan struct{}
type CancelContext ¶
type CancelContext Cancel
func (*CancelContext) Done ¶
func (cc *CancelContext) Done() <-chan struct{}
func (*CancelContext) Err ¶
func (cc *CancelContext) Err() error
func (*CancelContext) Value ¶
func (*CancelContext) Value(key interface{}) interface{}
type Mission ¶
type Mission struct {
// contains filtered or unexported fields
}
func NewMission ¶
func NewMission() *Mission
func (*Mission) NowaitDone ¶
func (m *Mission) NowaitDone()
func (*Mission) RecvCancel ¶
func (m *Mission) RecvCancel() <-chan struct{}
type MissionContext ¶
type MissionContext Mission
func (*MissionContext) Done ¶
func (c *MissionContext) Done() <-chan struct{}
func (*MissionContext) Err ¶
func (c *MissionContext) Err() error
func (*MissionContext) Value ¶
func (*MissionContext) Value(key interface{}) interface{}
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) WeakDo ¶
func (p *Pool) WeakDo(f PoolWeakFunc, args ...interface{})
type PoolWeakFunc ¶
type PoolWeakFunc func(...interface{})
Click to show internal directories.
Click to hide internal directories.