fdmap

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const UseSingleInstance = true

Unix fds are small integers, so all event loops can share one direct index.

Variables

View Source
var ErrOutOfRange = errors.New("fdmap: descriptor out of range")
View Source
var MaxOpenFiles = maxOpenFilesCeiling

MaxOpenFiles covers the conventional Unix per-process fd ceiling. It is reduced to the process soft limit during initialization when necessary.

Functions

This section is empty.

Types

type Map

type Map[V any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[V any]() *Map[V]

func (*Map[V]) Clear

func (m *Map[V]) Clear()

func (*Map[V]) Delete

func (m *Map[V]) Delete(k int)

func (*Map[V]) Get

func (m *Map[V]) Get(k int) *V

func (*Map[V]) Put

func (m *Map[V]) Put(k int, v *V) error

func (*Map[V]) Range

func (m *Map[V]) Range() iter.Seq2[int, *V]

Jump to

Keyboard shortcuts

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