shredder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JoinedThread

type JoinedThread struct {
	// contains filtered or unexported fields
}

func R

func R(t *Thread) *JoinedThread

func W

func W(t *Thread) *JoinedThread

func WS

func WS(t *Thread) *JoinedThread

type OnPanic

type OnPanic interface {
	OnPanic(error)
}

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool(limit int) *Pool

func (*Pool) Spawner

func (p *Pool) Spawner(op OnPanic) *Spawner

func (*Pool) Tune

func (p *Pool) Tune(limit int)

type Spawner

type Spawner struct {
	// contains filtered or unexported fields
}

func (*Spawner) Go

func (s *Spawner) Go(f func()) bool

func (*Spawner) Kill

func (s *Spawner) Kill()

func (*Spawner) NewThead

func (s *Spawner) NewThead() *Thread

type Thread

type Thread struct {
	// contains filtered or unexported fields
}

func (*Thread) IsDone

func (t *Thread) IsDone() bool

func (*Thread) Kill

func (t *Thread) Kill(after func()) bool

func (*Thread) Killed

func (t *Thread) Killed() bool

func (*Thread) Read

func (th *Thread) Read(f func(*Thread), joined ...*JoinedThread)

func (*Thread) ReadInstant

func (th *Thread) ReadInstant(f func(*Thread), joined ...*JoinedThread)

func (*Thread) Write

func (th *Thread) Write(f func(*Thread), joined ...*JoinedThread)

func (*Thread) WriteInstant

func (th *Thread) WriteInstant(f func(*Thread), joined ...*JoinedThread)

func (*Thread) WriteInstantStarving

func (th *Thread) WriteInstantStarving(f func(*Thread), joined ...*JoinedThread)

func (*Thread) WriteStarving

func (th *Thread) WriteStarving(f func(*Thread), joined ...*JoinedThread)

Jump to

Keyboard shortcuts

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