Close the resource with the given timeout.
Close the resource with the given timeout. This timeout is advisory, giving the callee some leeway, for example to drain clients or finish up other tasks.
Close the resource.
Close the resource. The returned Future is completed when the resource has been fully relinquished.
Closable is a mixin trait to describe a closable
.resource
Note: There is a Java-friendly API for this trait: com.twitter.util.AbstractClosable.