Skip to content

Commit

Permalink
Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
NikSativa committed Apr 11, 2024
1 parent 513dfe6 commit 2c5df9d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions README.md
@@ -1,27 +1,24 @@
# NQueue

[![Build-Test](https://github.com/NikSativa/NQueue/actions/workflows/Build_Test.yml/badge.svg)](https://github.com/NikSativa/NQueue/actions/workflows/Build_Test.yml)
[![GitHub license](https://img.shields.io/github/license/NikSativa/NQueue.svg)](https://github.com/NikSativa/NQueue/blob/main/LICENSE)
[![latest release](https://img.shields.io/github/release/NikSativa/NQueue)](https://GitHub.com/NikSativa/NQueue/releases/)
[![latest tag](https://img.shields.io/github/tag/NikSativa/NQueue)](https://GitHub.com/NikSativa/NQueue/tags/)
# Threading

Wrapper of GCD queue with few cool features

safe execution of a synchronous task on the main thread **from any thread**
Safe execution of a synchronous task on the main thread **from any thread including main**
‘’’swift
Queue.main.sync {
// your task on main thread
}
‘’’

**Queueable** protocol can help you test your code without threading by overriding real implementation via your own mock or existing Fake from SpryKit framework

**DelayedQueue** make it simple to manage task execution as parameter at your discretion
### Queueable
Protocol can help you test your code without threading by overriding real implementation via your own mock or existing Fake from SpryKit framework.
### DelayedQueue
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.

Use standart queues
‘’’swift
Queue.background.async
‘’’

‘’’swift
Queue.utility.asyncAfter
‘’’
Expand All @@ -30,6 +27,7 @@ or easily make your own
‘’’swift
Queue.custom(label: “my line”).async
‘’’

‘’’swift
Queue.custom(label: “my line”, qos: .utility).async
‘’’
Expand All @@ -38,6 +36,3 @@ you can never go wrong with creating a queue due to explicit parameters
‘’’swift
Queue.custom(label: “my line”, attributes: .serial).async
‘’’

ps:
as all N-frameworks, this was covered by unit tests and contains independent TestHelpers framework.

0 comments on commit 2c5df9d

Please sign in to comment.