- Notifications
You must be signed in to change notification settings - Fork0
A lightweight Swift library & syntactic sugar for async (GCD) operations
License
NotificationsYou must be signed in to change notification settings
biering/coex
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Coex comes from Coexistence and is a lightweight Swift library & syntactic sugar for async (GCD) operations.
Made with ♥ in pure Swift 5.x, no dependencies, simple & fully portable.
You can also useCoex.async(...) instead ofasync(...).
mainbackgroundutilityuserInitiateduserInteractivecustom
Running a block of code in a specific DispatchQueue.Default is.main.
| BECOMES | |
|---|---|
DispatchQueue.<queue>.async { } | async(.<queue>) { } |
DispatchQueue.main.async { } | async(.main) { }async { } (.main is default) |
DispatchQueue.global(qos: .background).async { } | async(.main, after: 3.0) { } |
Executing a block of code after a specific time (in seconds).Default isnil.
| BECOMES | |
|---|---|
DispatchQueue.<queue>.asyncAfter(deadline: .now() + 3.0) { } | async(.<queue>, after: 3.0) { } |
DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { } | async(.main, after: 3.0) { } |
Add the following as a dependency to yourPackage.swift:
.package(url: "https://github.com/chryb/coex.git", .exact("1.0.0"))Insert the following into yourCartfile:
github "chryb/coex" == 1.0.0Add the following to yourPodspec:
use_frameworks!pod "Coex"Just MIT. SeeLICENSE.
About
A lightweight Swift library & syntactic sugar for async (GCD) operations
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
