|
Last change
on this file since 99ab276 was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
238 bytes
|
| Line | |
|---|
| 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | /* eslint-disable no-var */
|
|---|
| 4 |
|
|---|
| 5 | var queue = require('./')(worker, 1)
|
|---|
| 6 |
|
|---|
| 7 | queue.push(42, function (err, result) {
|
|---|
| 8 | if (err) { throw err }
|
|---|
| 9 | console.log('the result is', result)
|
|---|
| 10 | })
|
|---|
| 11 |
|
|---|
| 12 | function worker (arg, cb) {
|
|---|
| 13 | cb(null, 42 * 2)
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.