Skip to content

ARC API cleanup #4292

Description

@jesse99
  • ARC should have a get method to complement the get function. This would make ARCs a bit nicer to use and would be more consistent with the other arc types.
  • MutexARC should have read and write methods instead of an access method. This is more consistent with RWARC, makes the semantics of the code clearer, and is important for types like LinearMap where the API changes depending on whether the reference is immutable or not (and currently if you have a mutable reference you cannot get an immutable reference without something like the Mut type or unsafe).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-concurrencyArea: ConcurrencyA-lifetimesArea: Lifetimes / regionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions