Urara-Blog/node_modules/.pnpm-store/v3/files/00/5b735c8ef18dd98cb6923f808a2056eda01c96c78f534642dbcae1c14e30eeff29c592320f4b3462e6c12a419483f483f57b7311b682226335d9251087aba5
2022-08-14 01:14:53 +08:00

11 lines
221 B
Text

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
}