@nxtedition/shared 2.0.11 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -158,7 +158,8 @@ export function writer({ sharedState, sharedBuffer }) {
158
158
 
159
159
  while (!_tryWrite(maxLen, fn, opaque)) {
160
160
  // TODO (fix): Async? Warn? Timeout?
161
- Atomics.wait(state, READ_INDEX, readPos)
161
+ const result = Atomics.wait(state, READ_INDEX, readPos, 1e3)
162
+ assert(result !== 'timed-out')
162
163
  }
163
164
  }
164
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "Ring Buffer for NodeJS cross Worker communication",
5
5
  "main": "index.js",
6
6
  "repository": {