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

Add DisableGC option to document #117

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Add DisableGC option to document #117

merged 1 commit into from
Sep 25, 2023

Conversation

humdrum
Copy link
Contributor

@humdrum humdrum commented Sep 20, 2023

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@humdrum humdrum added this to the 0.4.7 milestone Sep 20, 2023
@humdrum humdrum self-assigned this Sep 20, 2023
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage: 20.58% and project coverage change: -0.04% ⚠️

Comparison is base (38ea3c2) 44.24% compared to head (41e6b1a) 44.21%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   44.24%   44.21%   -0.04%     
==========================================
  Files         105      105              
  Lines       22229    22263      +34     
==========================================
+ Hits         9836     9843       +7     
- Misses      12393    12420      +27     
Files Changed Coverage Δ
Tests/Integration/GCTests.swift 0.14% <0.00%> (-0.01%) ⬇️
Sources/Document/Document.swift 38.14% <87.50%> (+0.90%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

@@ -81,8 +94,13 @@ public actor Document {
private var presences: [ActorID: StringValueTypeDictionary]

public init(key: String) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably better to declare as a convenience initializer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The document is an actor. So I can't declare a convenience initializer.

스크린샷 2023-09-25 오후 7 33 48

@humdrum humdrum merged commit 3c8e311 into main Sep 25, 2023
@humdrum humdrum deleted the disable-gc-option branch September 25, 2023 10:39
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.

3 participants