mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 22:56:06 +00:00

Greatly simplify how ESLint and its plugins are installed. PR-URL: https://github.com/nodejs/node/pull/53413 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
12 lines
221 B
JavaScript
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
|
|
}
|