Threading

1.3.5

Wrapper of GCD queue with few cool features
NikSativa/Threading

What's New

1.3.5

2024-04-17T15:02:40Z

Full Changelog: 1.3.4...1.3.5

Threading

Wrapper of GCD queue with few cool features

Safe execution of a synchronous task on the main thread from any thread including main

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.

Use standart queues

Queue.background.async
Queue.utility.asyncAfter

or easily make your own

Queue.custom(label: “my line”).async
Queue.custom(label: “my line”, qos: .utility).async

you can never go wrong with creating a queue due to explicit parameters

Queue.custom(label: “my line”, attributes: .serial).async

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Tue Nov 05 2024 05:55:15 GMT-1000 (Hawaii-Aleutian Standard Time)