@travetto/exec
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "0.0.8" | ||
"version": "0.0.9" | ||
} |
@@ -30,2 +30,6 @@ import { CommonProcess, ExecutionEvent } from './types'; | ||
get active() { | ||
return !!this._proc; | ||
} | ||
send(eventType: string, data?: any) { | ||
@@ -99,3 +103,4 @@ if (process.env.DEBUG) { | ||
kill() { | ||
this.clean(); | ||
this.release(); | ||
this._proc.kill('SIGKILL'); | ||
delete this._proc; | ||
@@ -108,3 +113,3 @@ } | ||
clean() { | ||
release() { | ||
if (this._proc) { | ||
@@ -111,0 +116,0 @@ this._proc.removeAllListeners('message'); |
export * from './execution'; | ||
export * from './local'; | ||
export * from './child'; | ||
export * from './pool'; | ||
export * from './util'; |
@@ -1,4 +0,5 @@ | ||
import { ChildExecution, ExecutionPool, ArrayDataSource, IteratorDataSource } from '../src'; | ||
import { ChildExecution } from '../src'; | ||
import { ConcurrentPool, ArrayDataSource, IteratorDataSource } from '@travetto/pool'; | ||
const pool = new ExecutionPool<ChildExecution>(async () => { | ||
const pool = new ConcurrentPool<ChildExecution>(async () => { | ||
console.log('Initializing child'); | ||
@@ -5,0 +6,0 @@ const child = new ChildExecution(`${__dirname}/index.js`, true, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9867
15
318