Yeah, I'm doing such thing at system.dispatcher.scheduleOnce but if I'd use
this at when(state, duration) wouldn't duration be computed only at Actor
start/creation? Even lazy may not be helpful because it'll compute only
once and will return the same value again and again.
On Thursday, November 2, 2017 at 5:44:55 AM UTC+2, Christopher Hunt wrote:
>
> Perhaps something like this in order to get your FiniteDuration:
>
> Duration.ofMillis(
> ChronoUnit.MILLIS.between(
> ZonedDateTime.parse("2007-12-03T10:15:30+01:00[Europe/Paris]"),
> ZonedDateTime.now
> )
> )
>
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.