class documentation
An in-memory connection pool to an in-memory SQLite database which can be controlled a single operation at a time. Each operation that would normally be asynchronously dispatched to a thread can be invoked with the MemoryPool.pump and MemoryPool.flush methods.
| Class Method | new |
Create a synchronous memory connection pool. |
| Method | additional |
Add an additional callable to be called by MemoryPool.pump and MemoryPool.flush. This can be used to interleave other sources of in-memory event completion to allow test coroutines to complete, such as needing to call ... |
| Method | flush |
Perform all outstanding steps of work. |
| Method | pump |
Perform one step of pending work. |
| Instance Variable | connectable |
The AsyncConnectable to be passed to the system under test. |
| Class Variable | _performers |
Undocumented |
Create a synchronous memory connection pool.
Add an additional callable to be called by MemoryPool.pump and MemoryPool.flush. This can be used to interleave other sources of in-memory event completion to allow test coroutines to complete, such as needing to call StubTreq.flush in a web application.
Perform one step of pending work.
| Returns | |
bool | True if any work was performed and False if no work was left. |