package
0.11.4
Repository: https://github.com/huangjunwen/nproto.git
Documentation: pkg.go.dev

# Functions

NewDefaultLimitedRunner creates a new LimitedRunner with DefaultMaxConcurrency and no queue.
NewLimitedRunner creates a new LimitedRunner.

# Variables

DefaultMaxConcurrency is the default value of maxConcurrency.
ErrClosed is returned when task is submitted after LimitedRunner has been closed.
ErrTooBusy is returned when task is submitted but LimitedRunner is too busy to handle.

# Structs

LimitedRunner implements TaskRunner interface.

# Interfaces

TaskRunner is an interface to run tasks.