(ctx *plan.Context)
| 35 | } |
| 36 | |
| 37 | func NewTaskBase(ctx *plan.Context) *TaskBase { |
| 38 | if ctx.Context == nil { |
| 39 | ctx.Context = context.Background() |
| 40 | } |
| 41 | return &TaskBase{ |
| 42 | // All Tasks Get output channels by default, but NOT input |
| 43 | msgOutCh: make(MessageChan, ItemDefaultChannelSize), |
| 44 | sigCh: make(SigChan, 1), |
| 45 | errCh: make(ErrChan, 10), |
| 46 | errors: make([]error, 0), |
| 47 | Ctx: ctx, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func (m *TaskBase) Children() []Task { return nil } |
| 52 | func (m *TaskBase) Setup(depth int) error { |
no outgoing calls
no test coverage detected