consider renaming `.pause()` / `.stop()`

Open
#1,388 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Read the definitions and call sites for .pause() and .stop() to understand their behavior and how draining works. The issue asks the project to decide whether to rename them, combine them with a draining parameter, or keep the current names before the 0.19 release; done means that decision is made.

Written by the indexing model from the issue text.

Description

API design

The difference between them does not feel very intuitive to me. I'd suggest switching to something more explicit like .stop_immediate() / .stop_draining(), or just combining them and make draining a parameter. We should definitely make a decision on this before releasing 0.19 (the decision may of course be to stick with what we currently have)

Dominant language
Rust
Stars
4k
Forks
554
Avg merge
1d 3h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/cpal

All issues in RustAudio/cpal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.