Wrap blocking APIs with tokio
Open
enhancement
help wanted
- Dominant language
- Rust
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Some subcommands such as `chrs login` call blocking APIs (wait for keyboard input). This blocks the async runtime, which is fine in this context, but a bad practice.
https://docs.rs/tokio/1.15.0/tokio/task/index.html#blocking-and-yielding
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the subcommands, especially `chrs login`, that wait for keyboard input, then read Tokio's blocking-and-yielding documentation linked in the issue. Done means the identified blocking APIs no longer block the async runtime while preserving the existing command behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100