dispose

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL