ReactivePlusPlus
ReactiveX implementation for C++20
Loading...
Searching...
No Matches
rpp::schedulers::delay_from_this_timepoint Struct Reference

Timepoint of next execution would be calculcated from timepoint of current scheduling. More...

#include <fwd.hpp>

Public Member Functions

 delay_from_this_timepoint (duration duration={})
 

Public Attributes

duration value
 

Detailed Description

Timepoint of next execution would be calculcated from timepoint of current scheduling.

Implementation looks like this

const auto timepoint_for_schedulable = schedulable->get_timepoint();
sleep_until(timepoint_for_schedulable);
const auto duration_from_this_timepoint = schedulable();
schedule(timepoint_for_schedulable + duration_from_this_timepoint, schedulable);

The documentation for this struct was generated from the following file: