textileio / go-textile

[DEPRECATED] Textile is a set of tools and infrastructure for building composable apps and services on the IPFS network
https://textile.io
MIT License
357 stars 43 forks source link

Any data-fetching method should be async #835

Closed asutula closed 5 years ago

asutula commented 5 years ago

Is your feature request related to a problem? Please describe. All data-fetching methods are currently sync, and they can be slow it seems. This can lock up whatever thread the calls are happening on and multiple requests for data can get backed up. Methods I'm thinking of are:

Files.Content
Files.ImageContent
Ipfs.DataAtPath

Maybe there are others? You get the idea.

Describe the solution you'd like These methods should be async and take a completion handler

sanderpick commented 5 years ago

Adding to 0.4.3...