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

sync: support mpsc send with &self #2861

Merged
merged 14 commits into from Sep 25, 2020
Merged

sync: support mpsc send with &self #2861

merged 14 commits into from Sep 25, 2020

Commits on Sep 22, 2020

  1. sync: support mpsc send with &self

    Updates the mpsc channel to use the intrusive waker based sempahore.
    This enables using `Sender` with `&self`.
    
    Instead of using `Sender::poll_ready` to ensure capacity and updating
    the `Sender` state, `async fn Sender::reserve()` is added. This function
    returns a `Permit` value representing the reserved capacity.
    
    Fixes: #2637
    Refs: #2718 (intrusive waiters)
    carllerche committed Sep 22, 2020
    Copy the full SHA
    2b50675 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Copy the full SHA
    705e4ab View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    38a7cbf View commit details
    Browse the repository at this point in the history
  3. fix feature permutations

    carllerche committed Sep 23, 2020
    Copy the full SHA
    b844fcd View commit details
    Browse the repository at this point in the history
  4. fix clippy

    carllerche committed Sep 23, 2020
    Copy the full SHA
    4298f9f View commit details
    Browse the repository at this point in the history
  5. fix docs

    carllerche committed Sep 23, 2020
    Copy the full SHA
    3d86180 View commit details
    Browse the repository at this point in the history
  6. tweaks

    carllerche committed Sep 23, 2020
    Copy the full SHA
    75660bf View commit details
    Browse the repository at this point in the history
  7. tweak Permit::send + docs

    carllerche committed Sep 23, 2020
    Copy the full SHA
    4997c6b View commit details
    Browse the repository at this point in the history
  8. fix tests

    carllerche committed Sep 23, 2020
    Copy the full SHA
    064874a View commit details
    Browse the repository at this point in the history
  9. fix clippy

    carllerche committed Sep 23, 2020
    Copy the full SHA
    7742506 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    92dc71e View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. fmt

    carllerche committed Sep 24, 2020
    Copy the full SHA
    704f122 View commit details
    Browse the repository at this point in the history
  2. apply feedback

    carllerche committed Sep 24, 2020
    Copy the full SHA
    03036d2 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    2361ae3 View commit details
    Browse the repository at this point in the history