Closed anhtukhtn closed 5 years ago
Are you effectively trying to do something like this?
func fetchInfo() -> Promise<[String]> {
return all(fetch1(), fetch2()).then { [weak self] (fetch1Data, _) -> [String] in
self?.doThing()
return fetch1Data
}
}
Thank you very much. It works perfectly..
Firstly, thank for the great repo.
I try to (way 1) // it works in JS
I have to do (way 2)
The question is can I archive it by the way 1?
Thank you very much