1 unstable release

0.9.1 Oct 18, 2023

#1089 in Concurrency

Download history 1/week @ 2024-02-18 10/week @ 2024-02-25 4/week @ 2024-03-10 58/week @ 2024-03-24 12/week @ 2024-03-31

70 downloads per month

Apache-2.0

4KB

patterns

Patterns for working with streambed.

Ask Pattern

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.

Dependencies

~2.4–4MB
~67K SLoC