Skip to content

Conversation

@RajaveluC
Copy link

Code has been fixed for swift 3. Fixed an issue that prevented the tasks from being persisted.

@sdgandhi
Copy link
Contributor

sdgandhi commented Jul 8, 2017

This is great @RajaveluC! Let me check out the diff and why the travis build is failing.

Deserializes tasks that were serialized (persisted)
*/
open func loadSerializedTasks() {
self.pause()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good!


let tasks = sp.deserializeTasks(self)
for task in tasks {
task.setupDependencies(tasks)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed? It's important to setup the dependencies.


func addDeserializedTask(task: SYNQueueTask) {
if tasksMap[task.taskID] != nil {
open func start() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this and pause() should be open. What's a good argument for it?

func log(level: LogLevel, _ msg: String) {
return ConsoleLogger.log(level, msg)
}
import Foundation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already imported above.

class func log(level: LogLevel, _ msg: String) {
runOnMainThread { print("[\(level.toString().uppercaseString)] \(msg)") }
public func log(_ level: LogLevel, _ msg: String) {
print("[\(level.toString())] \(msg)")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We lost the uppercase here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants