Skip to content

API Docs: sync #29377

Closed
Closed
@steveklabnik

Description

@steveklabnik

Part of #29329

http://doc.rust-lang.org/std/sync/

Here's what needs to be done to close out this issue:

  • the module-level documentation is very small. It should explain what the module is for in more detail, with some examples.
  • std::sync::atomic could use links to the types it references.
  • std::sync::atomic::fence has very... dry docs that aren't very helpful. And there's no examples.
  • ATOMIC_*_INIT (link is just to BOOL but all of them) could use examples.
  • Atomic* (link is to Bool but all of them) are mostly fine, but could use links to other types and some beefing up generally.
  • Barrier needs a bunch of types linked.
  • BarrierWaitResult should explain its relationship with Barrier and link to it.
  • Condvar needs examples on its methods.
  • Once needs to link to ONCE_INIT.
  • PoisonError needs examples.
  • RwLock needs examples, links to types, and a comparison between it and Mutex.
  • WaitTimeoutResult should link to the method that creates it.
  • TryLockError needs to link to the function that creates it.
  • ONCE_INIT needs a link to Once and some examples.
  • LockResult needs links.
  • TryLockResult needs links.
  • Weak could do a much better job of explaining itself.
  • std::sync::mspc needs a lot of links. The docs are good but a bit jargon-heavy, expanding those would be nice.
  • IntoIter needs more links and to explain how you get one.
  • Iter is the same.
  • Receiver needs links, examples, and more explanation of what it is.
  • RecvError needs to link to recv.
  • SendError needs links.
  • Sender has the same issues as Receiver.
  • SyncSender has the same as Sender.
  • TryIter needs to link to how to create one.
  • RecvTimeoutError needs to link to recv_timeout.
  • TryRecvError needs to link to try_recv
  • TrySendError needs to link to try_send.
  • channel has almost no docs and it's the focus of this module!
  • sync_channel should point to channel and then tell how it's different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions