refactor: remove duplicate import in examples
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 15:15:21 +0000 (17:15 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 15:15:21 +0000 (17:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
CHANGELOG.md
examples/typescript/http-client-pool/src/worker.ts

index 7eb01555af1518cfd5a6748677ee763228232c29..8d1da82330d9378b9eb1705c90269beb8625ddce 100644 (file)
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+### Added
+
+- Add kill handler to worker options allowing to execute custom code when worker is killed.
+
 ## [2.6.25] - 2023-08-13
 
 ### Added
index 4dc3a6a9d52cca84a196cdbef6df96704dbdd296..b7c5962914cd0e0e8ab9604182232875c392c771 100644 (file)
@@ -1,6 +1,5 @@
 import { ThreadWorker } from 'poolifier'
-import nodeFetch from 'node-fetch'
-import {
+import nodeFetch, {
   type RequestInfo as NodeFetchRequestInfo,
   type ResponseInit as NodeFetchRequestInit
 } from 'node-fetch'