This commit is contained in:
parent
fa2be029a2
commit
724d70e58b
3339 changed files with 1075535 additions and 0 deletions
9
frontend/node_modules/fastq/example.mjs
generated
vendored
Normal file
9
frontend/node_modules/fastq/example.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { promise as queueAsPromised } from './queue.js'
|
||||
|
||||
const queue = queueAsPromised(worker, 1)
|
||||
|
||||
console.log('the result is', await queue.push(42))
|
||||
|
||||
async function worker (arg) {
|
||||
return 42 * 2
|
||||
}
|
||||
Reference in a new issue