File tree Expand file tree Collapse file tree 12 files changed +19
-20
lines changed
Expand file tree Collapse file tree 12 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,8 @@ deno task format && deno task lint
3131
3232Please consider our pillars before to start change the project
3333
34- - Performance :white_check_mark :
35- - Security :white_check_mark :
36- - No runtime dependencies :white_check_mark : (until now we don't have any
37- exception to that)
38- - Easy to use :white_check_mark :
39- - Code quality :white_check_mark :
34+ - Performance ✔
35+ - Security ✔
36+ - No runtime dependencies ✔ (until now we don't have any exception to that)
37+ - Easy to use ✔
38+ - Code quality ✔
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ You can implement a
117117a simple way by extending the class _ ThreadWorker_ :
118118
119119``` js
120- import { ThreadWorker } from ' https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
120+ import { ThreadWorker } from ' https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
121121
122122function yourFunction (data ) {
123123 // this will be executed in the worker thread,
@@ -138,7 +138,7 @@ import {
138138 DynamicThreadPool ,
139139 FixedThreadPool ,
140140 PoolEvents ,
141- } from ' https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
141+ } from ' https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
142142
143143// a fixed worker_threads pool
144144const pool = new FixedThreadPool (availableParallelism (), ' ./yourWorker.js' )
Original file line number Diff line number Diff line change 44
55Security matrix, currently there are no security vulnerabilities.
66
7- | Version | Supported |
8- | ------- | ------------------ |
9- | 1.x.x | : white_check_mark : |
7+ | Version | Supported |
8+ | ------- | --------- |
9+ | 1.x.x | ✔ |
1010
1111## Reporting a Vulnerability
1212
Original file line number Diff line number Diff line change 22 availableParallelism ,
33 DynamicThreadPool ,
44 PoolEvents ,
5- } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
5+ } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
66
77const pool = new DynamicThreadPool (
88 Math . floor ( availableParallelism ( ) / 2 ) ,
Original file line number Diff line number Diff line change 22 availableParallelism ,
33 FixedThreadPool ,
44 PoolEvents ,
5- } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
5+ } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
66
77const pool = new FixedThreadPool (
88 availableParallelism ( ) ,
Original file line number Diff line number Diff line change 11import {
22 availableParallelism ,
33 FixedThreadPool ,
4- } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
4+ } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
55
66const pool = new FixedThreadPool (
77 availableParallelism ( ) ,
Original file line number Diff line number Diff line change 1- import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
1+ import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
22
33function fn0 ( data ) {
44 console . info ( 'Executing fn0' )
Original file line number Diff line number Diff line change 1- import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
1+ import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
22
33function yourFunction ( ) {
44 for ( let i = 0 ; i <= 1000 ; i ++ ) {
Original file line number Diff line number Diff line change 22 availableParallelism ,
33 DynamicThreadPool ,
44 FixedThreadPool ,
5- } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
5+ } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
66import type { MyData , MyResponse } from './worker.ts'
77
88const workerFileURL = new URL (
Original file line number Diff line number Diff line change 1- import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.1 /src/index.ts'
1+ import { ThreadWorker } from 'https://deno.land/x/poolifier@v0.0.2 /src/index.ts'
22
33export interface MyData {
44 ok : 0 | 1
You can’t perform that action at this time.
0 commit comments