7 unstable releases (3 breaking)

0.12.0 Nov 27, 2024
0.11.1 Sep 13, 2024
0.11.0 Aug 16, 2024
0.10.2 Aug 13, 2024
0.9.1 Oct 18, 2023

#912 in Concurrency

Download history 2/week @ 2024-08-26 148/week @ 2024-09-09 26/week @ 2024-09-16 44/week @ 2024-09-30 5/week @ 2024-10-07 6/week @ 2024-11-04 5/week @ 2024-11-11 145/week @ 2024-11-25 15/week @ 2024-12-02 12/week @ 2024-12-09

172 downloads per month

Apache-2.0

6KB

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.2–8MB
~63K SLoC