Skip to content

docs: update readme - #4

Merged
George-Miao merged 1 commit into
compio-rs:mainfrom
George-Miao:docs/update-readme
Mar 6, 2026
Merged

George-Miao merged 1 commit into
compio-rs:mainfrom
George-Miao:docs/update-readme

Conversation

@George-Miao

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 6, 2026 06:40
@George-Miao
George-Miao merged commit d1018d5 into compio-rs:main Mar 6, 2026
3 checks passed
@George-Miao George-Miao added the documentation Improvements or additions to documentation label Mar 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the README documentation to better describe ThinCell’s borrowing behavior and to align the example section’s heading structure with the rest of the document.

Changes:

  • Renames “Borrow Rules” section to “Borrow Semantics” and refines the description of sync vs unsync behavior on re-borrow.
  • Adjusts heading levels for the Examples section and its subsections for consistent Markdown structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md

- `sync::ThinCell<T>`: Thread-safe, uses `AtomicUsize` and blocking borrow semantics: borrowing while already borrowed will busy loop and `yield_now`.
- `unsync::ThinCell<T>`: Single threaded, uses `Cell<usize>` and panicking borrow semantics: borrowing while already borrowed will panic.
- `sync::ThinCell<T>`: Block current thread by busy-looping and yield to other threads;

Copilot AI Mar 6, 2026

Copy link

Choose a reason for hiding this comment

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

The bullet text is a bit ungrammatical/inconsistent in punctuation ("busy-looping and yield"; first bullet ends with a semicolon, second with a period). Consider rephrasing to something like "...busy-looping and yielding to other threads" and use consistent punctuation for both bullets.

Suggested change
- `sync::ThinCell<T>`: Block current thread by busy-looping and yield to other threads;
- `sync::ThinCell<T>`: Block the current thread by busy-looping and yielding to other threads.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants