Skip to main content

Module sync

Module sync 

Source
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§

SyncGlideClient
A blocking client for a standalone deployment.
SyncGlideClusterClient
A blocking client for a cluster deployment.

Traits§

PipelineExt
Extension for running a Pipeline on 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.