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

Introduce synchronous has_model function in the manager base class. #3377

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

jasongrout
Copy link
Member

This simplifies our code that has had to work around get_model either returning undefined or a rejected promise if a model was not registered.
This paves the way for a future get_model in 8.0 that is truly asynchronous, never returning undefined.

@jasongrout jasongrout added this to the 7.7 milestone Feb 11, 2022
This simplifies our code that has had to work around get_model either
returning undefined or a rejected promise if a model was not registered.
This paves the way for a future get_model in 8.0 that is truly asynchronous, never returning undefined.
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's way cleaner that way! Thanks

@jasongrout
Copy link
Member Author

It's way cleaner that way! Thanks

Feel free to merge if it looks good to you!

@martinRenou martinRenou merged commit 281479c into jupyter-widgets:7.x Feb 11, 2022
jasongrout added a commit to jasongrout/ipywidgets that referenced this pull request Feb 18, 2022
…manager base class

From jupyter-widgets#3377.

This simplifies our code that has had to work around get_model either
returning undefined or a rejected promise if a model was not registered.
This paves the way for a future get_model in 8.0 that is truly asynchronous, never returning undefined.
@jasongrout jasongrout mentioned this pull request Feb 18, 2022
2 tasks
ibdafna added a commit that referenced this pull request Feb 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants