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

Actor #16

Open
yosshi4486 opened this issue Feb 17, 2022 · 2 comments
Open

Actor #16

yosshi4486 opened this issue Feb 17, 2022 · 2 comments

Comments

@yosshi4486
Copy link
Owner

yosshi4486 commented Feb 17, 2022

I am wondering about the policy of actor. Should Loaders be actor..?

if the loaders should be loaded in any thread:
mark actor instead of class

if the loaders should be loaded only in main thread:
mark @MainActor just before the class

@yosshi4486
Copy link
Owner Author

yosshi4486 commented Feb 18, 2022

I think that only EmojiContainer should be replaced with actor, because we can control the internal EmojiLoader and EmojiAnnotationLoader. Only EmojiContainer is protected from data race.

@yosshi4486
Copy link
Owner Author

But, actor can not assign a new value from outside of the isolated context. The behavior is problem for a configuable object.

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

No branches or pull requests

1 participant