GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add node: for internal modules · HowProgrammingWorks/Semaphore@de13d67

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • JavaScript
    • 1-shared.js
    • 2-binary.js
    • 3-counting.js
    • 4-callback.js
    • 5-atomics.js
    • 6-counting-safe.js
    • 7-binary-safe.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎JavaScript/1-shared.js‎

Copy file name to clipboardExpand all lines: JavaScript/1-shared.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const { Worker, isMainThread } = threads;
55

66
if (isMainThread) {
Collapse file

‎JavaScript/2-binary.js‎

Copy file name to clipboardExpand all lines: JavaScript/2-binary.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const { Worker, isMainThread } = threads;
55

66
const LOCKED = 0;
Collapse file

‎JavaScript/3-counting.js‎

Copy file name to clipboardExpand all lines: JavaScript/3-counting.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const fs = require('fs');
4-
const threads = require('worker_threads');
3+
const fs = require('node:fs');
4+
const threads = require('node:worker_threads');
55
const { Worker, isMainThread } = threads;
66

77
class CountingSemaphore {
Collapse file

‎JavaScript/4-callback.js‎

Copy file name to clipboardExpand all lines: JavaScript/4-callback.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const fs = require('fs');
4-
const threads = require('worker_threads');
3+
const fs = require('node:fs');
4+
const threads = require('node:worker_threads');
55
const { Worker, isMainThread } = threads;
66

77
class CountingSemaphore {
Collapse file

‎JavaScript/5-atomics.js‎

Copy file name to clipboardExpand all lines: JavaScript/5-atomics.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const fs = require('fs');
4-
const threads = require('worker_threads');
3+
const fs = require('node:fs');
4+
const threads = require('node:worker_threads');
55
const { Worker, isMainThread } = threads;
66

77
class CountingSemaphore {
Collapse file

‎JavaScript/6-counting-safe.js‎

Copy file name to clipboardExpand all lines: JavaScript/6-counting-safe.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const fs = require('fs');
4-
const threads = require('worker_threads');
3+
const fs = require('node:fs');
4+
const threads = require('node:worker_threads');
55
const { Worker, isMainThread } = threads;
66

77
class CountingSemaphore {
Collapse file

‎JavaScript/7-binary-safe.js‎

Copy file name to clipboardExpand all lines: JavaScript/7-binary-safe.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const threads = require('worker_threads');
3+
const threads = require('node:worker_threads');
44
const { Worker, isMainThread } = threads;
55

66
const LOCKED = 0;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.