Crates.io | streambed-patterns |
lib.rs | streambed-patterns |
version | 0.12.0 |
source | src |
created_at | 2023-10-18 04:08:54.82232 |
updated_at | 2024-11-27 08:03:13.474904 |
description | Patterns for working with streambed |
homepage | |
repository | https://github.com/streambed/streambed-rs.git |
max_upload_size | |
id | 1006358 |
size | 14,817 |
Patterns for working with streambed.
The ask pattern is based on the concept of the same name from Akka.
It encodes async request-reply semantics which can be used, for example, to perform request-reply operations across a tokio::sync::mpsc::channel
or
similar. The provided implementation sends a message using a tokio::sync::mpsc::Sender<_>
and uses a tokio::sync::oneshot
channel internally to convey the
response.