Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am calebboyd on github.
  • I am calebboyd (https://keybase.io/calebboyd) on keybase.
  • I have a public key ASARFgtxLA7h3vBIN6A-EIySVoPrt8u6mgJvzSQ8e5tkRAo

To claim this, I am signing this object:

@calebboyd
calebboyd / Pool.ts
Last active October 20, 2016 14:12
import Queue from 'double-ended-queue'
const POOL_ID = Symbol('pool-id')
const IS_DIRTY = Symbol('dirty')
function isDirty (resource) {
return resource[IS_DIRTY]
}
function poolId (resource) {