Hello.
Maybe someone also have a similar case or maybe it could be good start to 
extend akka functionality with pull request?..
The case is: I'm using PersistentFSM and I'd like my actor would stay at 
last/current state let's say till next Tuesday or till beginning of next 
hour etc. Luckily PresistentFSMs do not reset timers while staying at same 
state <https://github.com/akka/akka/issues/18207> so half of desired 
functionality is achieved. But looking at current definition of when I 
can't see how can I do different state timeouts each time the state changes 
to particular one. Looks with built-in toolkit I can set only fixed 
timeouts.
Now I'm handling this case using system.dispatcher.scheduleOnce that just 
emit Message/Event that I can react to and go to other state.
Am I missing some core functionality or am I the only one with such case 
and no one really needs it? If I'm not only one with such case will it be a 
good idea to send a pull-request to akka and akka-persistence to add 
variation of when method that uses { D => FiniteDuration } instead of just 
FiniteDuration to be able to provide different timeouts?

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to