kefir
Version:
Reactive Programming library for JavaScript inspired by Bacon.js and RxJS with focus on high performance and low memory usage
23 lines (17 loc) • 318 B
JavaScript
import {inherit} from '../utils/objects'
import AbstractPool from './abstract-pool'
function Pool() {
AbstractPool.call(this)
}
inherit(Pool, AbstractPool, {
_name: 'pool',
plug(obs) {
this._add(obs)
return this
},
unplug(obs) {
this._remove(obs)
return this
},
})
export default Pool