close method
Cleans up any resources associated with it the Runnable
.
For example, if the Runnable
uses a http client internally, it closes
it. If there is no resource to clean up, this method does nothing.
Don't try to call the Runnable
after calling this method.
Implementation
@override
void close() {
_client.endSession();
}