-
Notifications
You must be signed in to change notification settings - Fork 2
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
Centralized Callback Manager #77
Conversation
We should be pushing out a callback manager which we can use for WaitForState, solving the original problem in #75 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
||
private static string GenerateKey() | ||
{ | ||
return Guid.NewGuid().ToString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think timestamps can serve as a good enough key, or can there be collisions? Just a thought. Because that way you can keep track of the callbacks stored, according to time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe give this file and folder an appropriate name too?
(instead of src/index.js
)
CallbackManager.cs
which will replace all of the Dictionaries/Lists we are using for handling callbacks for different parts of playroomAction
(void)TODO:
Based On #75
Relates to #40