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

refactor(cli): decouple ops from ProgramState and Flags #8659

Merged
merged 26 commits into from
Dec 11, 2020

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 7, 2020

This commit does major refactor of "Worker" and "WebWorker",
in order to decouple them from "ProgramState" and "Flags".
The main points of interest are "create_main_worker()" and
"create_web_worker_callback()" functions which are responsible
for creating "Worker" and "WebWorker" in CLI context.
As a result it is now possible to factor out common "runtime"
functionality into a separate crate.

Towards library crate

@bartlomieju bartlomieju changed the title [WIP] refactor(cli): remove op_start [WIP] refactor(cli): remove access to flags from ops Dec 7, 2020
@bartlomieju bartlomieju changed the title [WIP] refactor(cli): remove access to flags from ops refactor(cli): remove access to flags from ops Dec 8, 2020
@bartlomieju bartlomieju requested a review from ry December 8, 2020 00:13
@bartlomieju bartlomieju removed the request for review from ry December 8, 2020 20:13
@bartlomieju bartlomieju changed the title refactor(cli): remove access to flags from ops [WIP] refactor(cli): remove access to flags from ops Dec 8, 2020
@bartlomieju bartlomieju changed the title [WIP] refactor(cli): remove access to flags from ops [WIP] refactor(cli): decouple ops from ProgramState and Flags Dec 10, 2020
@bartlomieju bartlomieju changed the title [WIP] refactor(cli): decouple ops from ProgramState and Flags refactor(cli): decouple ops from ProgramState and Flags Dec 11, 2020
@bartlomieju bartlomieju requested a review from ry December 11, 2020 13:33
cli/main.rs Show resolved Hide resolved
cli/ops/worker_host.rs Outdated Show resolved Hide resolved
cli/ops/worker_host.rs Outdated Show resolved Hide resolved
@bartlomieju bartlomieju requested a review from ry December 11, 2020 15:32
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju merged commit 65e72b6 into denoland:master Dec 11, 2020
@bartlomieju bartlomieju deleted the remove_op_start branch December 11, 2020 17:49
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