chains

package
v2.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 2 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 adds fn to the head of the chain.

func (*Chain) AddToTail

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

AddToTail adds fn to the tail of the chain.

func (*Chain) Cancel added in v2.2.0

func (c *Chain) Cancel()

Cancel cancels execution of the chain.

func (*Chain) FireHead

func (c *Chain) FireHead()

FireHead executes the chain from the head.

func (*Chain) FireTail

func (c *Chain) FireTail()

FireTail executes the chain from the tail.

func (*Chain) Recover added in v2.6.0

func (c *Chain) Recover()

Recover restores the chain after it has been canceled.

func (*Chain) Release added in v2.6.0

func (c *Chain) Release()

Release releases the chain.

Jump to

Keyboard shortcuts

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