Open zetachang opened 7 years ago
Might be interesting indeed! If you wish to contribute it feel free :)
Good to know!
Also, I think it might be helpful if async API could also return a Promise like React Native did (and still support callback/block API)
Location.geocode('apple inc').then do |location|
puts location.address
end.rescue |error|
puts error
end
Indeed, we could change the existing APIs to return a Promise instead. But I guess we need to figure out the initial API and implementation first.
This might be helpful for composing async tasks.