Chris Ruddell
11/30/2020, 11:35 PMquery
object hasn’t been frozen:
func loadData() {
DispatchQueue.global(qos: .background).async {
let query = CustomerQuery().emails(value: ["<mailto:customer@gmail.com|customer@gmail.com>"])
self.fetchCustomersAndDoSomething(query: query)
}
}
func fetchCustomersAndDoSomething(query: CustomerQuery) {
DispatchQueue.main.async {
self.mylibrary.getCustomers(query: query) { response, err in
// do something with response
}
}
}
If that’s true, it would seem I would need to add a method to every such object in order to ‘freeze’ it, since the freeze()
Kotlin function from Freezing.kt
doesn’t seem to be accessible from the Swift code importing my library.