Crates.io | streambed-patterns |
lib.rs | streambed-patterns |
version | 0.11.1 |
source | src |
created_at | 2023-10-18 04:08:54.82232 |
updated_at | 2024-09-13 03:33:00.698288 |
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.