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: Rename ProgramState to ProcState #12204

Merged
merged 3 commits into from
Sep 24, 2021
Merged

refactor: Rename ProgramState to ProcState #12204

merged 3 commits into from
Sep 24, 2021

Conversation

ry
Copy link
Member

@ry ry commented Sep 24, 2021

And move the Arc inside the struct.

@ry ry requested a review from bartlomieju September 24, 2021 01:46
use std::sync::Arc;

/// This structure represents state of single "deno" program.
///
/// It is shared by all created workers (thus V8 isolates).
pub struct ProgramState {
#[derive(Clone)]
pub struct ProcState(Arc<Inner>);
Copy link
Member

Choose a reason for hiding this comment

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

Go with ProcessState? Saving three characters is not worth the abbrevation

Copy link
Member Author

Choose a reason for hiding this comment

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

Why isn't it? Matches what we do in Deploy

Copy link
Member

Choose a reason for hiding this comment

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

Okay, if you prefer it...

@ry ry merged commit 01da1d0 into main Sep 24, 2021
@ry ry deleted the ProcState branch September 24, 2021 15:10
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.

None yet

2 participants