Skip to content

Instantly share code, notes, and snippets.

@mwrites
Last active September 12, 2017 14:39
Show Gist options
  • Save mwrites/f26b20da31a009ead57e3bbe3c905127 to your computer and use it in GitHub Desktop.
Save mwrites/f26b20da31a009ead57e3bbe3c905127 to your computer and use it in GitHub Desktop.
JobQueue implementation in Swift
//MARK: -
//MARK: Private
class JobQueueCenter {}
//MARK: -
//MARK: Public API
extension JobQueueCenter {
static let current = JobQueueCenter()
func enqueue(job: Job) {}
func executeNext() {}
func persist() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment