sema

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package sema implements semaphore with timeout

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sema

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

func New

func New(timeout ...time.Duration) *Sema

func (*Sema) Lock

func (s *Sema) Lock()

func (*Sema) RLock

func (s *Sema) RLock()

func (*Sema) RUnlock

func (s *Sema) RUnlock()

func (*Sema) Unlock

func (s *Sema) Unlock()

Jump to

Keyboard shortcuts

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