From 835c99be62549f2d4e8b530eb32235bd783bfd98 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Mon, 25 Dec 2023 20:53:55 -0500 Subject: [PATCH] Update `via` docs Remove deprecated `typed_via` and fix parameter order in `via.` --- doc/api_reference.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/api_reference.md b/doc/api_reference.md index a44cbf16..e0a621ae 100644 --- a/doc/api_reference.md +++ b/doc/api_reference.md @@ -430,7 +430,7 @@ Note that `completion` sender must complete with an empty value pack if it completes with `set_value`. ie. it must be a `void`-value sender. -### `via(Scheduler scheduler, Sender sender) -> Sender` +### `via(Sender sender, Scheduler scheduler) -> Sender` Returns a sender that produces the result from `sender` on the execution context associated with `scheduler`. @@ -439,13 +439,6 @@ If the result of `schedule(scheduler)` completes with `set_done()` then `set_done()` is sent. If the result of `schedule(scheduler)` completes with `set_error()` then its error is sent. Otherwise sends the result of `sender`. -### `typed_via(Sender source, Scheduler scheduler) -> Sender` - -Returns a sender that produces the result from `source`, which must -declare the nested `value_types`/`error_types` type aliases which describe which -overloads of `set_value()`/`set_error()` they will call, on the execution context -associated with `scheduler`. - ### `on(Scheduler scheduler, Sender sender) -> Sender` Returns a sender that ensures that `sender` is started on the