taquilla

package module
v0.0.0-...-d3d2881 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

README

taquilla

Golang elastic semaphores package that allows processes to run only if there's enough memory available.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rel

func Rel(token string)

Rel accepts the allotted token to the process and removes it from memory; consequently, it processes the next available process

func Req

func Req(ticketType string) string

Req accepts a title for the semaphore and an access token is returned. The caller function can then begin its execution.

func Setup

func Setup(memoryRequiredInMB float64)

Setup accepts the average memory requirement for a process

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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