8 releases (4 breaking)

new 0.13.0 Apr 11, 2025
0.12.0 Nov 27, 2024
0.11.1 Sep 13, 2024
0.11.0 Aug 16, 2024
0.9.1 Oct 18, 2023

#687 in Asynchronous

Download history 3/week @ 2025-02-15 3/week @ 2025-02-22 2/week @ 2025-03-01 68/week @ 2025-04-05

71 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.3–8.5MB
~63K SLoC