Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a basic *registry* actor example #296

Open
goodboy opened this issue Jan 27, 2022 · 0 comments
Open

Add a basic *registry* actor example #296

goodboy opened this issue Jan 27, 2022 · 0 comments

Comments

@goodboy
Copy link
Owner

goodboy commented Jan 27, 2022

Since we're going to eventually need this to replace the whole Arbiter thing, we might as well offer a solid example as well.

I was thinking the tools to use would be:

  • a module level (aka global scoped) defined SimpleNamespace which can be mutated by 2way stream based request response dialog
  • a detailed doc on how using a module level namespace is basically a actor local namespace and is very similar to, but not exactly the same as trio's .lowlevelRunVar (depending on if you're using threads with multiple trio.run() calls)
  • consider maybe showing how to create a sub-namespace style with a class MyNamespace: style where the class is never instantiated and instead as used for defining further nested attrs within the global module space?

#184 and #215 will likely be based on this if we can get something production grade-ish 🏄🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant