slots

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 6 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

Overview

Package slots says how many runs may be live at once on this machine. A person sets the number in the "slots" file of Physa's settings directory; without a valid one the count follows the machine's cores and memory. It only counts: it holds no run, limits no single run and reads no load.

Index

Constants

View Source
const File = "slots"

File is the setting's file name in Physa's settings directory.

Variables

This section is empty.

Functions

func Count

func Count(dir string) int

Count returns how many runs may be live at once: the positive whole number on the first non-blank line of <dir>/slots, read fresh on each call, else the machine's default. It never fails and never returns less than 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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