Returns the object being leased by the pool.
the object being leased by the pool.
Invalidates the current lease.
Releases the object back to the pool for reuse.
Gets the value from the lease, passing it onto the provided function and releasing it back to the pool after the function is run.
the type of object returned by the function
a function that uses the value stored in the lease to produce a new value
the value produced by the function