njs_semaphore

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMaxSimultaneous

func GetMaxSimultaneous() int

Types

type Sem

type Sem interface {
	NewWorker() error
	NewWorkerTry() bool
	DeferWorker()
	DeferMain()

	WaitAll() error
	Context() context.Context
	Cancel()
}

func NewSemaphore

func NewSemaphore(maxSimultaneous int, timeout time.Duration, deadline time.Time, parent context.Context) Sem

Jump to

Keyboard shortcuts

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