Skip to content

Commit

Permalink
fix Readme markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
NikSativa committed Apr 12, 2024
1 parent 2c5df9d commit 1f95fde
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Expand Up @@ -3,36 +3,36 @@
Wrapper of GCD queue with few cool features

Safe execution of a synchronous task on the main thread **from any thread including main**
‘’’swift
```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. You can manage not only in what Queue to execute but also how sync or async.
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
```swift
Queue.background.async
‘’’
```

‘’’swift
```swift
Queue.utility.asyncAfter
‘’’
```

or easily make your own
‘’’swift
```swift
Queue.custom(label: “my line”).async
‘’’
```

‘’’swift
```swift
Queue.custom(label: “my line”, qos: .utility).async
‘’’
```

you can never go wrong with creating a queue due to explicit parameters
‘’’swift
```swift
Queue.custom(label: “my line”, attributes: .serial).async
‘’’
```
File renamed without changes.

0 comments on commit 1f95fde

Please sign in to comment.