You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello !
When using channel::tick::recv() I expected it to compute its time to sleep with some kind of Instant saved at the time of the Channel instantiation.
Instead the Instant used is the one taken from the last message received, which has two effects :
it guarantees that the specified duration at least elapses between two messages received
it leads to a small shift from the initial Channel instantiation Instant, mostly due to the job scheduler not waking up the thread necessarily on time
If this was intended originally, then some documentation about the second effect is necessary.
If this is a bug, I would be happy to send a PR. However we must keep in mind that some users might rely on the first effect above.
Also, I think the channel::tick::recv should not have to loop around a thread::sleep as the latter already guarantees to sleep at least the provided duration, which leaves room for simplifying this file a lot.
The text was updated successfully, but these errors were encountered:
Hello !
When using
channel::tick::recv()
I expected it to compute its time to sleep with some kind ofInstant
saved at the time of theChannel
instantiation.Instead the
Instant
used is the one taken from the last message received, which has two effects :Channel
instantiation Instant, mostly due to the job scheduler not waking up the thread necessarily on timeIf this was intended originally, then some documentation about the second effect is necessary.
If this is a bug, I would be happy to send a PR. However we must keep in mind that some users might rely on the first effect above.
Also, I think the
channel::tick::recv
should not have to loop around athread::sleep
as the latter already guarantees to sleep at least the provided duration, which leaves room for simplifying this file a lot.The text was updated successfully, but these errors were encountered: