Skip to content

Commit

Permalink
Adds documentation for the Web3j.shutdown method
Browse files Browse the repository at this point in the history
  • Loading branch information
mushketyk committed Mar 20, 2018
1 parent 7ec488d commit ee152f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/web3j/protocol/Web3j.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static Web3j build(
}

/**
* Shutdowns a Web3j instance and cleans up opened resources.
* Shutdowns a Web3j instance and closes opened resources.
*/
void shutdown();
}
6 changes: 6 additions & 0 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ For further information refer to :doc:`infura`.
Instructions on obtaining Ether to transact on the network can be found in the
:ref:`testnet section of the docs <ethereum-testnets>`.

When you no longer need a `Web3j` instance you need to call the `shutdown` method to close resources used by it.

.. code-block:: java
web3.shutdown()
Start sending requests
----------------------
Expand Down

0 comments on commit ee152f4

Please sign in to comment.