Help us shape the future of Go! Take the 2026 Go Developer Survey

chains

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 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 Chain

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

func NewChain

func NewChain() *Chain

func (*Chain) AddToHead

func (c *Chain) AddToHead(fn func())

AddToHead 添加头部

func (*Chain) AddToTail

func (c *Chain) AddToTail(fn func())

AddToTail 添加到尾部

func (*Chain) Cancel

func (c *Chain) Cancel()

Cancel 取消调用栈

func (*Chain) FireHead

func (c *Chain) FireHead()

FireHead 从头部开始执行

func (*Chain) FireTail

func (c *Chain) FireTail()

FireTail 从尾部开始执行

Jump to

Keyboard shortcuts

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