Skip to content

Update cheatsheet#35

Merged
Suke0811 merged 3 commits intomainfrom
update-cheatsheet
Aug 11, 2025
Merged

Update cheatsheet#35
Suke0811 merged 3 commits intomainfrom
update-cheatsheet

Conversation

@Suke0811
Copy link
Copy Markdown
Owner

This pull request updates the documentation for the fspin library, focusing on clarifying the usage patterns for blocking vs fire-and-forget execution modes, improving installation instructions, and providing more comprehensive examples and API references. The changes make it easier for developers to understand how to use threading and async features, and when to use the wait flag. The readme and cheatsheet now include explicit guides and code samples for both synchronous and asynchronous patterns, as well as a quick reference for blocking behavior.

Documentation improvements for blocking vs fire-and-forget usage:

  • Expanded the fspin_cheatsheet.md with clear code examples and explanations for synchronous and asynchronous usage, detailing how the wait flag affects blocking behavior for both decorators and context managers. Added a "Blocking vs fire-and-forget quick reference" section for easy lookup. [1] [2] [3] [4] [5] [6] [7]

Readme enhancements:

  • Added a dedicated installation section at the top of readme.md for easier onboarding, including a PyPI badge and pip instructions.
  • Included a prominent link and description for the cheatsheet, encouraging developers and LLMs to use it for quick reference and troubleshooting. [1] [2]
  • Added comprehensive code samples for both sync and async blocking vs fire-and-forget patterns, with explanations for when to use wait=True or wait=False. [1] [2]
  • Clarified context manager usage for both sync and async functions, specifying the effect of the wait flag and when it is applicable. [1] [2]
  • Removed duplicate installation instructions and reorganized documentation for clarity and flow.

These updates make the documentation much clearer and help prevent common mistakes when using the library’s threading and async capabilities.

@Suke0811 Suke0811 requested a review from Copilot August 11, 2025 19:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request improves the documentation for the fspin library by clarifying the usage patterns for blocking vs fire-and-forget execution modes, reorganizing installation instructions, and providing comprehensive examples for both synchronous and asynchronous patterns.

  • Added clear documentation distinguishing between blocking (wait=True) and fire-and-forget (wait=False) patterns for both sync and async functions
  • Reorganized installation instructions to appear at the top of the README with a PyPI badge
  • Enhanced the cheatsheet with detailed API references, code examples, and a quick reference section for blocking behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
readme.md Moved installation section to top, added comprehensive blocking vs fire-and-forget examples, improved cheatsheet description and positioning
fspin_cheatsheet.md Expanded with detailed code examples for sync/async patterns, added blocking vs fire-and-forget quick reference section, enhanced API documentation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Suke0811 Suke0811 merged commit aab4282 into main Aug 11, 2025
7 checks passed
@Suke0811 Suke0811 deleted the update-cheatsheet branch October 9, 2025 17:50
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