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

Rename to Fiber#set_scheduler. #3742

Merged
merged 2 commits into from Nov 7, 2020

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Nov 7, 2020

This was accepted by Matz. There might be other minor changes required.

@ioquatix ioquatix merged commit 5b3572b into ruby:master Nov 7, 2020
@ioquatix ioquatix deleted the scheduler-rename-fiber-scheduler branch November 7, 2020 10:40
{
// if (rb_scheduler_get() != Qnil) {
// rb_raise(rb_eFiberError, "Scheduler is already defined!");
// }
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed, rb_scheduler_set() handles the previous scheduler if any.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah, it was an experiment - considering different semantics.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was considering introducing set_scheduler and close_scheduler.

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