Skip to content

Qucik question about 2.7.5 #395

@RamblinWreck77

Description

@RamblinWreck77

Just checked out the diffs from 2.7.4 -> 2.7.5 and I'm glad to see the library moving away from objc_sync's towards dispatch queues!!!

A few quick questions:

-For the new queues (and all, really), would it be wise to assign them a QoS of .utility? Since this is a background process we probably don't want any of these events getting serviced on UI-sensitive main.

-I shouldn't technically be necessary, but I've found it's best practice to capture objects when doing .sync and .async calls to another queue.

let thing = Thing()
myQueue.sync { [thing] in
    thing.doSomething()
}

AFAIK it costs nothing and can save some headaches down the road when weird, nonsensical BAD_ACCESS crashes start showing up.

Thanks for another update :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions