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

Support loading types asynchronously #15

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented May 30, 2023

To avoid the "Stop the world" on loading types, this allows to load types asynchronously.

Users can change the types loader via KatakataIrb::Types.loader_type setting:

KatakataIrb::Types.loader_type = :async

Copy link
Owner

@tompng tompng left a comment

Choose a reason for hiding this comment

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

Thank you for your pull request 😄

lib/katakata_irb/types.rb Outdated Show resolved Hide resolved
lib/katakata_irb/types.rb Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
To avoid the "Stop the world" on loading types, this allows to load
types asynchronously.

Users can change the types loader via `KatakataIrb::Types.loader_type`
setting:

    KatakataIrb::Types.loader_type = :async
@tk0miya tk0miya force-pushed the async_rbs_builder_loader branch from b68bbc2 to e578679 Compare May 31, 2023 17:51
@tk0miya
Copy link
Contributor Author

tk0miya commented May 31, 2023

Now I updated my PR. Thank you for your review!

Copy link
Owner

@tompng tompng left a comment

Choose a reason for hiding this comment

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

Looks good, thanks 🎉

@tompng tompng merged commit 47f0ec0 into tompng:main Jun 1, 2023
@tk0miya tk0miya deleted the async_rbs_builder_loader branch June 1, 2023 16:53
tk0miya added a commit to tk0miya/katakata_irb that referenced this pull request Jun 30, 2023
`rbs_builder_loader` was already removed on the review at tompng#15.
Therefore it should be removed too.
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