package
0.3.0
Repository: https://github.com/matrixorigin/matrixcube.git
Documentation: pkg.go.dev

# Functions

NewStopper create a stopper.
WithLogger set the logger.
WithStopTimeout the stopper will print the names of tasks that are still running beyond this timeout.
WithTimeoutTaskHandler set handler to handle timeout tasks.

# Variables

ErrUnavailable stopper is not running.

# Structs

Stopper a stopper used to to manage all tasks that are executed in a separate goroutine, and Stopper can manage these goroutines centrally to avoid leaks.

# Type aliases

Option stop option.