PIbd-21_Danilov_V.V._Intern.../Lab3/node_modules/fastq/example.mjs
Владимир Данилов 83490711d5 отчет
2023-12-19 20:23:11 +04:00

12 lines
221 B
JavaScript

import { promise as queueAsPromised } from './queue.js'
/* eslint-disable */
const queue = queueAsPromised(worker, 1)
console.log('the result is', await queue.push(42))
async function worker (arg) {
return 42 * 2
}