limitter

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChromiumLimiter

func ChromiumLimiter() *semaphore.Weighted

func DockerLimiter

func DockerLimiter() *semaphore.Weighted

func HostLimiter

func HostLimiter(host string) *semaphore.Weighted

func PlaywrightLimiter

func PlaywrightLimiter() *semaphore.Weighted

func ReplaceLimits added in v1.5.0

func ReplaceLimits(limits *config.Limits)

ReplaceLimits swaps the host request limits, bypassing the process-lifetime once semantics of SetLimits. Long-lived embedders that execute many unrelated configs in one process (e.g. the WASM playground) call it before each run so every config gets exactly its own limits. Only in-flight requests keep the semaphores they already acquired.

func SetLimits

func SetLimits(limits *config.Limits)

Types

This section is empty.

Jump to

Keyboard shortcuts

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