UNPKG

lightning-pool

Version:

Fastest generic Pool written with TypeScript

10 lines (9 loc) 246 B
import { ResourceState } from './constants.js'; export class ResourceItem { constructor(resource) { this.state = ResourceState.IDLE; this.idleTime = 0; this.destroyed = false; this.resource = resource; } }