Skip to content

Commit 8a44e9d

Browse files
ironblasterJustin Poehnelt
authored andcommitted
docs: add note about shutdown (#642)
1 parent 70ea97b commit 8a44e9d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ You can find the latest version at the top of this README or by [searching
139139
Maven Central](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22google-maps-services%22) or [Gradle, Please](http://gradleplease.appspot.com/#google-maps-services).
140140

141141
## Developer Documentation
142-
143142
View the [javadoc](https://www.javadoc.io/doc/com.google.maps/google-maps-services).
144143

145144
Additional documentation for the included web services is available at
@@ -190,6 +189,9 @@ The `GeoApiContext` is designed to be a [Singleton](https://en.wikipedia.org/wik
190189
in your application. Please instantiate one on application startup, and continue to use it for the
191190
life of your application. This will enable proper QPS enforcement across all of your requests.
192191

192+
At the end of the execution, call the `shutdown()` method of `GeoApiContext`,
193+
otherwise the thread will remain instantiated in memory.
194+
193195
For more usage examples, check out [the tests](src/test/java/com/google/maps).
194196

195197
## Features

0 commit comments

Comments
 (0)