Expand description
Blocking (synchronous) clients.
Mirrors Python glide-sync. SyncGlideClient / SyncGlideClusterClient
wrap the async clients and drive them on a shared, process-wide Tokio runtime.
Every async command is reachable from sync code via SyncGlideClient::run
(and the cluster equivalent), and the most common commands also have direct
blocking methods.
The blocking methods here must not be called from within an async context (a running Tokio runtime) — doing so panics with tokio’s “cannot block the current thread from within a runtime”.
Structs§
- Sync
Glide Client - A blocking client for a standalone deployment.
- Sync
Glide Cluster Client - A blocking client for a cluster deployment.
Traits§
- Pipeline
Ext - Extension for running a
Pipelineon a GLIDE sync client with with typed decoding and zero extra payload copies.
Functions§
- block_
on - Block on an arbitrary future using the shared runtime.