MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / close

Method close

acouchbase/bucket.py:70–79  ·  view source on GitHub ↗

Shuts down this bucket instance. Cleaning up all resources associated with it. .. warning:: Use of this method is almost *always* unnecessary. Bucket resources should be cleaned up once the bucket instance falls out of scope. However, in some applications tuning re

(self)

Source from the content-addressed store, hash-verified

68 await self._impl.wait_until_bucket_connected()
69
70 async def close(self) -> None:
71 """Shuts down this bucket instance. Cleaning up all resources associated with it.
72
73 .. warning::
74 Use of this method is almost *always* unnecessary. Bucket resources should be cleaned
75 up once the bucket instance falls out of scope. However, in some applications tuning resources
76 is necessary and in those types of applications, this method might be beneficial.
77
78 """
79 await self._impl.close_bucket()
80
81 def default_scope(self) -> Scope:
82 """Creates a :class:`~acouchbase.scope.Scope` instance of the default scope.

Callers 2

_get_working_loopMethod · 0.45
close_loopMethod · 0.45

Calls 1

close_bucketMethod · 0.45

Tested by

no test coverage detected