Created
September 8, 2018 10:00
-
-
Save wilk/44d16eaa0550b66e96e17a624bc678cc to your computer and use it in GitHub Desktop.
microjob data example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const res = await job(data => { | |
let i = 0 | |
for (i = 0; i < data.counter; i++) {} | |
return i | |
}, {data: {counter: 1000000}}) | |
console.log(res) // 1000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment