mp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyedMutex

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

func (*KeyedMutex) Lock

func (k *KeyedMutex) Lock(key string) func()

type WorkerPool

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

func NewWorkerPool

func NewWorkerPool(workerNum int, queueSize int) *WorkerPool

func (*WorkerPool) Start

func (p *WorkerPool) Start()

func (*WorkerPool) Stop

func (p *WorkerPool) Stop()

func (*WorkerPool) Submit

func (p *WorkerPool) Submit(task func())

func (*WorkerPool) Wait

func (p *WorkerPool) Wait()

Jump to

Keyboard shortcuts

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