repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/mocha-10.5.0 into combined-prs-branch
[poolifier.git]
/
examples
/
typescript
/
pool.ts
diff --git
a/examples/typescript/pool.ts
b/examples/typescript/pool.ts
index 5d3d8e756833d84775d24bde59a975792da5b94b..1be0691a7aa7bf42423530d25d82994e4ce7fa6e 100644
(file)
--- a/
examples/typescript/pool.ts
+++ b/
examples/typescript/pool.ts
@@
-45,6
+45,7
@@
const dynamicPool = new DynamicThreadPool<MyData, MyResponse>(
await dynamicPool.execute()
await dynamicPool.execute()
+// eslint-disable-next-line @typescript-eslint/no-misused-promises
setTimeout(async () => {
await fixedPool.destroy()
await dynamicPool.destroy()
setTimeout(async () => {
await fixedPool.destroy()
await dynamicPool.destroy()