Hi,
I think it best to jump on IRC or have a video chat.
I can give you a run down of the current workings and perhaps show the planned future.
More below: vvvv
On May 14, 2013, at 9:42 AM, MrBrdo <
mrb...@gmail.com> wrote:
> Hey Tim,
>
> I know the Supervisor.root is not really used, but it was the only thing
> that caught my eye, that I thought could help me with my graceful shutdown
> problem (- it didn't). Also I know there are plans to provide options for
> this in the future but was also wondering if there are any 'hacks' possible
> right now?
>
> Do you know where Celluloid::Task::TerminatedError is being raised from and
> how to prevent it if possible?
This is inside the Task implementation.
And is called from the termination code. Check Actor#cleanup.
> Is there any way of me atomically asking my actor if it's alive? and busy?
> (my method)? Or should I just do busy? and rescue the
> Celluloid::DeadActorError exception?
You should listen to the termination events from your subordinate actors.
This gives you the best way to determine their liveliness.
Our overhaul will improve this situation greatly.
> Not sure what you meant regarding the timer.
A timer runs in a Task, so if you were to implement a "wait for all tasks" hack, you would catch this timer.
>
> I can provide gists, since this is part of a bigger project I can't really
> share all the code but I can provide some examples, is that what you meant
> - you want something that you can execute to demonstrate my issues? If you
> describe what you would like I will provide.
Yes, having a few good demonstrations, rather than incomplete snippets would be amazing!
I do understand that it can take time to extract pieces and that exposing internal code is sometimes not possible.
Cheers,
Tim
> You received this message because you are subscribed to the Google Groups "Celluloid" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
celluloid-rub...@googlegroups.com.