开发者

Is there a difference between "getting" an item and "fetching" an item?

开发者 https://www.devze.com 2023-03-03 15:52 出处:网络
When woul开发者_Go百科d a class method be called fetchItems() rather than getItems()? Is there a difference?

When woul开发者_Go百科d a class method be called fetchItems() rather than getItems()? Is there a difference?

fetchImage() vs getImage() etc...


"Get" is usually considered a local action and involves little more than poking at memory. "Fetch" may involve reaching across the network to a remote server to access the resource.

0

精彩评论

暂无评论...
验证码 换一张
取 消