Skip to content

Commit 6cf217c

Browse files
committed
Increase mutex unlock delay to take into account worker start in test
1 parent 6720d0c commit 6cf217c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<br/>
1616

17-
`experimental-threads` is a highly experimental concurrency library for JavaScript and TypeScript (Node.js, Deno, Bun). It enables the execution of inline closures within isolated Web Workers by combining static AST analysis, lexical scope capture, and shared memory hydration.
17+
`experimental-threads` is a highly experimental concurrency library for server-side JavaScript and TypeScript (Node.js, Deno, Bun). It enables the execution of inline closures within isolated Web Workers by combining static AST analysis, lexical scope capture, and shared memory hydration.
1818

1919
By abstracting away standard Web Worker message passing and the need for separate entry files, this library provides an API structurally similar to thread spawning in systems languages like Rust or Go.
2020

@@ -150,4 +150,4 @@ The `Global<T>` wrapper solves this by guaranteeing that a shared resource point
150150

151151
## License
152152

153-
MIT License. See [LICENSE](LICENSE) for details.
153+
MIT License. See [LICENSE](LICENSE.md) for details.

test/nested-worker-mutex-locking/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ Deno.test("Nested Worker Mutex Locking", async () => {
4848
view[0] = 3;
4949
}));
5050

51-
await delay(1000);
51+
await delay(2000);
5252

5353
guard.unlock();
5454

5555
await task2;
5656
}));
5757

58-
await delay(1000);
58+
await delay(2000);
5959

6060
// Unlock Main, allowing W2 to finish
6161
guard.unlock();

0 commit comments

Comments
 (0)