Created
June 25, 2018 09:16
-
-
Save chnbohwr/554fb69f983272921b4ea8c1041df1e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { parentPort } = require('worker_threads'); | |
| parentPort.on('message', (buffer) => { | |
| const int8Arr = new Int8Array(buffer); | |
| int8Arr[0] = 99; | |
| parentPort.postMessage('change value ok'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment