File "example.mjs"
Full Path: /var/www/html/gitep_front/node_modules/fastq/example.mjs
File size: 221 bytes
MIME-type: text/plain
Charset: utf-8
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
}