mdbergmann / cl-gserver

Sento - Actor framework featuring actors and agents for easy access to state and asynchronous operations.

Home Page:https://mdbergmann.github.io/cl-gserver/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ac:find-actors and ac:all-actors on actor

heylisp opened this issue · comments

Hello,
nice project!
I couldn't use (child) actors as the context to ac:find-actors and ac:all-actors.
Is that functionality provided?
Thanks.

ac:find-actors and ac:all-actors requires really an actor-context as parameter.
So this should work: (ac:find-actors (act:context your-actor)) the-test-fun).

Great! It worked. Thank you.
I was passing the actor itself: I understood it could be used directly in place of the actor system.
Thanks again!

Parts of the ac protocol could be implemented by actor, like those two function which would make things a bit easier.
I'll probably do that, so reopening.

ac:find-actors, ac:find-actor-by-name and ac:all-actors are now implemented by actor.