yapool

WebJar for yapool

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

yapool
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

yapool
WebJar for yapool
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/yapool

Download yapool

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/yapool/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>yapool</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/yapool/
implementation 'org.webjars.npm:yapool:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/yapool/
implementation ("org.webjars.npm:yapool:1.0.0")
'org.webjars.npm:yapool:jar:1.0.0'
<dependency org="org.webjars.npm" name="yapool" rev="1.0.0">
  <artifact name="yapool" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='yapool', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "yapool" % "1.0.0"
[org.webjars.npm/yapool "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

yapool

Yet Another object pool in JavaScript

Because yallist is sometimes too featureful, this is a very dead-simple linked-list pool thingie in JavaScript that lets you add and remove objects in a set.

Not suitable for very long lists, because all searches are O(n), but for small n, it has very low complexity.

API

p = new Pool()

Constructor takes no arguments

p.add(someObject)

put an object in the pool

p.length

return the number of things in the pool.

p.remove(someObject)

remove that object from the pool.

Versions

Version
1.0.0