Documentation
¶
Index ¶
- func ChromiumLimiter() *semaphore.Weighted
- func DockerLimiter() *semaphore.Weighted
- func HostLimiter(host string) *semaphore.Weighted
- func PlaywrightLimiter() *semaphore.Weighted
- func ReplaceLimits(limits *config.Limits)
- func SetLimits(limits *config.Limits)
- func TimedAcquire(ctx context.Context, sem *semaphore.Weighted, resource, host string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromiumLimiter ¶
func DockerLimiter ¶
func HostLimiter ¶
func PlaywrightLimiter ¶
func ReplaceLimits ¶ added in v1.5.0
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.