Skip to content

bozongiggsa/NQueue

 
 

Repository files navigation

NQueue

Build-Test GitHub license latest release latest tag

Wrapper of GCD queue with few cool features

safe execution of a synchronous task on the main thread from any thread ‘’’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 NSpry framework

DelayedQueue make it simple to manage task execution as parameter at your discretion

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

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

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.

About

Wrapper of GCD queue with few cool features

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 91.7%
  • Ruby 5.3%
  • Objective-C 3.0%