Skip to content

Commit 2c5df9d

Browse files
committed
Readme updated
1 parent 513dfe6 commit 2c5df9d

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# NQueue
2-
3-
[![Build-Test](https://github.com/NikSativa/NQueue/actions/workflows/Build_Test.yml/badge.svg)](https://github.com/NikSativa/NQueue/actions/workflows/Build_Test.yml)
4-
[![GitHub license](https://img.shields.io/github/license/NikSativa/NQueue.svg)](https://github.com/NikSativa/NQueue/blob/main/LICENSE)
5-
[![latest release](https://img.shields.io/github/release/NikSativa/NQueue)](https://GitHub.com/NikSativa/NQueue/releases/)
6-
[![latest tag](https://img.shields.io/github/tag/NikSativa/NQueue)](https://GitHub.com/NikSativa/NQueue/tags/)
1+
# Threading
72

83
Wrapper of GCD queue with few cool features
94

10-
safe execution of a synchronous task on the main thread **from any thread**
5+
Safe execution of a synchronous task on the main thread **from any thread including main**
116
‘’’swift
127
Queue.main.sync {
138
// your task on main thread
149
}
1510
‘’’
1611

17-
**Queueable** protocol can help you test your code without threading by overriding real implementation via your own mock or existing Fake from SpryKit framework
18-
19-
**DelayedQueue** make it simple to manage task execution as parameter at your discretion
12+
### Queueable
13+
Protocol can help you test your code without threading by overriding real implementation via your own mock or existing Fake from SpryKit framework.
14+
### DelayedQueue
15+
Make it simple to manage task execution as parameter at your discretion. You can manage not only in what Queue to execute but also how sync or async.
2016

2117
Use standart queues
2218
‘’’swift
2319
Queue.background.async
2420
‘’’
21+
2522
‘’’swift
2623
Queue.utility.asyncAfter
2724
‘’’
@@ -30,6 +27,7 @@ or easily make your own
3027
‘’’swift
3128
Queue.custom(label: “my line”).async
3229
‘’’
30+
3331
‘’’swift
3432
Queue.custom(label: “my line”, qos: .utility).async
3533
‘’’
@@ -38,6 +36,3 @@ you can never go wrong with creating a queue due to explicit parameters
3836
‘’’swift
3937
Queue.custom(label: “my line”, attributes: .serial).async
4038
‘’’
41-
42-
ps:
43-
as all N-frameworks, this was covered by unit tests and contains independent TestHelpers framework.

0 commit comments

Comments
 (0)