Discover Packages
github.com/sosodev/heart
pool
package
Version:
v0.0.0-...-aa1fe35
Opens a new window with list of versions in this module.
Published: Aug 31, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Pool is a pool of *lua.State
New gets you a *Pool of fully initialized *lua.State
Needs the initial size of the pool and an initializer function
The initializer will be reused later when the pool grows to meet peak demand
Cleanup the pool and all of its state
Return a *lua.State back to the pool
Take a *lua.State from the pool
Provisions and initializes a new one if the pool is empty
Source Files
¶
Click to show internal directories.
Click to hide internal directories.