Get Updates By E-mail 

Article Written By:
Johann Dowa

Overdrive – Swift Library Easily Creating Asynchronous, Concurrent Multi-Threaded Code

  •  
  •  
  •  
  •  
  •  

Overdrive from Said Sikira is an open source Swift framework created to help you optimize your apps speed by providing a simple API for concurrency and multi-threading.

Overdrive provides tasks which allow you to execute any work synchronously or asynchronously and also adds queues for running tasks in the most efficient manner even concurrently.

This snippet from the readme shows how one could easily create a task for URL request with 3 attempts, and run that code in the background:

let task = URLSessionTask("https://api.swiftable.io")

task
  .retry(3)
  .onValue { json in
    print(json["message"])
  }.onError { error in
    print(error)
  }

TaskQueue.background.add(task: task)

You can read more about Overdrive on the Swiftable site.

You can find the Overdrive library on Github here.

A great library for anyone looking to for creating asynchronous and multi-threaded Swift code.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments