ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
observe_on.hpp
1
// ReactivePlusPlus library
2
//
3
// Copyright Aleksey Loginov 2023 - present.
4
// Distributed under the Boost Software License, Version 1.0.
5
// (See accompanying file LICENSE_1_0.txt or copy at
6
// https://www.boost.org/LICENSE_1_0.txt)
7
//
8
// Project home: https://github.com/victimsnino/ReactivePlusPlus
9
//
10
11
#pragma once
12
13
#include <rpp/operators/fwd.hpp>
14
15
#include <rpp/operators/delay.hpp>
16
17
namespace
rpp::operators
18
{
38
* @ingroup utility_operators
39
* @see https://reactivex.io/documentation/operators/observeon.html
40
*/
41
template
<rpp::schedulers::constra
int
::scheduler Scheduler>
42
auto
observe_on
(Scheduler&& scheduler, rpp::schedulers::duration delay_duration)
43
{
44
return
details::delay_t<std::decay_t<Scheduler>
,
true
>{delay_duration, std::forward<Scheduler>(scheduler)};
45
}
46
}
// namespace rpp::operators
rpp::operators::observe_on
auto observe_on(Scheduler &&scheduler, rpp::schedulers::duration delay_duration={})
Specify the Scheduler on which an observer will observe this Observable.
Definition
observe_on.hpp:38
rpp::operators::details::delay_t
Definition
delay.hpp:170
src
rpp
rpp
operators
observe_on.hpp
Generated by
1.13.2