blaugold / unsplash_client

An unofficial, platform independent, client for the Unsplash API. Unsplash provides royalty-free images.
https://pub.dev/packages/unsplash_client
BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

Add close method #3

Closed blaugold closed 3 years ago

blaugold commented 3 years ago

The http.Client used internally by UnsplashClient should be closed when it is done being used.

UnsplashClient should expose a close method which disposes allocated resources such as http.Client. After this method has been called the client must not be used any more, which should be enforced.