tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [22/30] tinkerpop git commit: close client in documentation examples
Date Tue, 28 Feb 2017 19:06:08 GMT
close client in documentation examples


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/cf48a4cc
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/cf48a4cc
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/cf48a4cc

Branch: refs/heads/TINKERPOP-1640
Commit: cf48a4cc5bf313e5e7238fa7931f12d54f457764
Parents: b74c0a5
Author: davebshow <davebshow@gmail.com>
Authored: Fri Feb 17 11:34:56 2017 -0500
Committer: davebshow <davebshow@gmail.com>
Committed: Tue Feb 28 10:33:21 2017 -0500

----------------------------------------------------------------------
 docs/src/reference/gremlin-applications.asciidoc   | 3 +++
 docs/src/upgrade/release-3.2.x-incubating.asciidoc | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/cf48a4cc/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index ece0a82..8e0edc2 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -800,6 +800,8 @@ result_set = future_result_set.result() <6>
 result = result_set.one() <7>
 assert results == [1, 2, 3, 4] <8>
 assert result_set.done.done() <9>
+
+client.close() <10>
 ----
 
 <1> Submit a script that simply returns a `List` of integers.  This method blocks until
the request is written to
@@ -814,6 +816,7 @@ returns a `concurrent.futures.Future` that resolves to a list when it
is complet
 <7> Read a single result off the result stream.
 <8> Again, verify the result.
 <9> Verify that the all results have been read and stream is closed.
+<10> Close client and underlying pool connections.
 
 Configuration
 ^^^^^^^^^^^^^

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/cf48a4cc/docs/src/upgrade/release-3.2.x-incubating.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index 6bfc028..78c276b 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -55,6 +55,7 @@ result_set = client.submit('1 + 1')
 future_results = result_set.all()  # returns a concurrent.futures.Future
 results = future_results.result()  # returns a list
 assert results == [2]
+client.close()  # don't forget to close underlying connections
 ----
 
 See: link:https://issues.apache.org/jira/browse/TINKERPOP-1599[TINKERPOP-1599]


Mime
View raw message