Documentation ¶ Index ¶ type Disposer type It type List func (ds *List) Add(d Disposer) func (ds *List) Dispose() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Disposer ¶ type Disposer func() Disposer is a function that frees some resource. It will be called at the end of whole Run sequence (as a 'defer'). Task can register Disposer using it 'onDispose' argument. type It ¶ type It func(Disposer) It is a function that takes Disposer. type List ¶ type List struct { sync.Mutex // contains filtered or unexported fields } func (*List) Add ¶ func (ds *List) Add(d Disposer) func (*List) Dispose ¶ func (ds *List) Dispose() Source Files ¶ View all Source files dispose.go Click to show internal directories. Click to hide internal directories.