source: imaps-frontend/node_modules/fastq/example.mjs@ 0c6b92a

main
Last change on this file since 0c6b92a was d565449, checked in by stefan toskovski <stefantoska84@…>, 3 months ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 221 bytes
RevLine 
[d565449]1import { promise as queueAsPromised } from './queue.js'
2
3/* eslint-disable */
4
5const queue = queueAsPromised(worker, 1)
6
7console.log('the result is', await queue.push(42))
8
9async function worker (arg) {
10 return 42 * 2
11}
Note: See TracBrowser for help on using the repository browser.