Skip to content

Commit f7d5b35

Browse files
committed
Update README and bump to 1.6.8
1 parent 7a48803 commit f7d5b35

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -599,27 +599,24 @@ module.exports = {
599599
600600
### Angular Service example
601601
602-
```
603-
import { Injectable } from '@angular/core';
604-
import { QConcurrency, concurrent } from 'd4c-queue';
602+
```typescript
603+
import { Injectable } from '@angular/core'
604+
import { QConcurrency, concurrent } from 'd4c-queue'
605605

606606
// can be placed below @Injectable, too
607-
@QConcurrency([
608-
{ limit: 1 }
609-
])
607+
@QConcurrency([{ limit: 1 }])
610608
@Injectable({
611-
providedIn: 'root'
609+
providedIn: 'root',
612610
})
613611
export class HeroService {
614-
615612
@concurrent
616613
async task1() {
617-
await wait(5 * 1000);
614+
await wait(5 * 1000)
618615
}
619616

620617
@concurrent
621618
async task2() {
622-
await wait(1 * 1000);
619+
await wait(1 * 1000)
623620
}
624621
}
625622
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "d4c-queue",
3-
"version": "1.6.7",
3+
"version": "1.6.8",
44
"description": "A task queue executes tasks sequentially or concurrently. Wrap an async/promise-returning/sync function as a queue-ready async function for easy reusing. Support passing arguments/getting return value, @synchronized/@concurrent decorator, Node.js/Browser.",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

0 commit comments

Comments
 (0)