Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMakur authored Nov 23, 2021
1 parent df7dc44 commit cd4ae8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[TypeScript Example](https://github.com/Titan3301/node-threads/blob/main/examples/typescript.ts)
### CommonJS Example
```js
const { createContinousThreads } = require('./commonjs.cjs');
const { createContinuousThreads } = require('./commonjs.cjs');
const { createThreads } = require('./commonjs.cjs');
const { createThread } = require('./commonjs.cjs');
//Create Thread
Expand All @@ -17,13 +17,13 @@ createThread(() => {
createThreads(5 , () => {
conole.log('multiple threads');
})
createContinousThreads(6 , () => {
createContinuousThreads(6 , () => {
console.log(`6 threads will run at a time :D after they end new thread will be created`);
})
```
### ModernJS Example
```js
import { createContinousThreads } from './modernjs.mjs'
import { createContinuousThreads } from './modernjs.mjs'
import { createThreads } from './modernjs.mjs'
import { createThread } from './modernjs.mjs'
//Create Thread
Expand All @@ -35,13 +35,13 @@ createThread(() => {
createThreads(5 , () => {
conole.log('multiple threads');
})
createContinousThreads(6 , () => {
createContinuousThreads(6 , () => {
console.log(`6 threads will run at a time :D after they end new thread will be created`);
})
```
### TypeScript Example
```ts
import { createContinousThreads } from '../typescript.ts';
import { createContinuousThreads } from '../typescript.ts';
import { createThreads } from '../typescript.ts';
import { createThread } from '../typescript.ts';
//Create Thread
Expand All @@ -53,7 +53,7 @@ createThread(() => {
createThreads(5 , () => {
conole.log('multiple threads');
});
createContinousThreads(6 , () => {
createContinuousThreads(6 , () => {
console.log(`6 threads will run at a time :D after they end new thread will be created`);
});
```

0 comments on commit cd4ae8a

Please sign in to comment.