Package
- acouchbase.couchbase_loop_factory() AbstractEventLoop
Build a new event loop.
Deprecated since version 4.7.0: acouchbase runs on any event loop. Use
asyncio.new_event_loop(), or letasyncio.run()create the loop.- Returns:
A new event loop of the platform’s default type. It is not set as the thread’s current loop.
- acouchbase.get_event_loop(evloop: AbstractEventLoop | None = None) AbstractEventLoop
Get an event loop for acouchbase.
Deprecated since version 4.7.0: acouchbase runs on any event loop. Run the application with
asyncio.run(), and useasyncio.get_running_loop()inside it where a loop is needed.Resolves, in order:
evloopwhen given, the running loop, the thread’s current loop, and otherwise a new loop of the platform’s default type, which is set as the thread’s current loop. No loop is checked, closed or replaced.- Parameters:
evloop (asyncio.AbstractEventLoop, optional) – A loop to return as is.
- Returns:
The resolved event loop.
This module also publishes these, described where they are first documented: