Hi Hans, If you delay, and then the lambda that you schedule is a `defer` on to the same process, then this accomplishes what you want. The one caveat is that other functions may be invoked on your actor process in the mean time.
— *Joris Van Remoortere* Mesosphere On Tue, Jun 28, 2016 at 1:14 AM, Hans van den Bogert <[email protected]> wrote: > Hi, > > Is there a way to sleep a libprocess-process ? Or at least some construct > to stop for a specific amount of time in the middle of a method, which is > member of a Process, but giving opportunity to other processes to handle > their messages during that sleep. > > stout::os::sleep simply stops the whole current unix-process, which is not > what I need. > > I did read about `delay(…)` but that only makes sense, if I’m correct, > when the caller is needed to wait a specific amount of time before starting > another process. > > Hope someone can help. > > Regards, > > Hans van den Bogert
