@dxos/async 0.3.11-next.ee2b64c → 0.4.0
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.
- package/package.json +6 -6
- package/src/mutex.test.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/async",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Async utilities.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zen-observable": "^0.10.0",
|
|
20
20
|
"zen-push": "^0.3.1",
|
|
21
|
-
"@dxos/context": "0.
|
|
22
|
-
"@dxos/debug": "0.
|
|
23
|
-
"@dxos/
|
|
24
|
-
"@dxos/
|
|
25
|
-
"@dxos/util": "0.
|
|
21
|
+
"@dxos/context": "0.4.0",
|
|
22
|
+
"@dxos/debug": "0.4.0",
|
|
23
|
+
"@dxos/node-std": "0.4.0",
|
|
24
|
+
"@dxos/invariant": "0.4.0",
|
|
25
|
+
"@dxos/util": "0.4.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/zen-observable": "^0.8.3"
|
package/src/mutex.test.ts
CHANGED
|
@@ -18,8 +18,8 @@ describe('Mutex', () => {
|
|
|
18
18
|
await mutex.executeSynchronized(async () => {
|
|
19
19
|
events.push('mutex');
|
|
20
20
|
});
|
|
21
|
-
events.push('after');
|
|
22
21
|
|
|
22
|
+
events.push('after');
|
|
23
23
|
expect(events).to.deep.equal(['mutex', 'after']);
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -27,7 +27,6 @@ describe('Mutex', () => {
|
|
|
27
27
|
const mutex = new Mutex();
|
|
28
28
|
|
|
29
29
|
const value = await mutex.executeSynchronized(async () => 'foo');
|
|
30
|
-
|
|
31
30
|
expect(value).to.equal('foo');
|
|
32
31
|
});
|
|
33
32
|
|
|
@@ -142,7 +141,8 @@ describe('Mutex', () => {
|
|
|
142
141
|
expect(error!.stack!.includes('callmutex')).to.be.true;
|
|
143
142
|
}).skipEnvironments('webkit');
|
|
144
143
|
|
|
145
|
-
|
|
144
|
+
// TODO(burdon): TypeError: Property [Symbol.dispose] is not a function.
|
|
145
|
+
test.skip('works with explicit resource management syntax', async () => {
|
|
146
146
|
const mutex = new Mutex();
|
|
147
147
|
|
|
148
148
|
const events: string[] = [];
|