Skip to content

feature: synchronization primitive library #596

@George-Miao

Description

@George-Miao

Overview

A tool library that provides optionally synchronous primitives.

Referenece:

What should be included (sync/unsync):

  • Arc/Rc
  • Mutex/RefCell
  • Atomic/Cell
  • Notify
  • Maybe channels

Design questions

How to expose sync/unsync version?

Should:

  1. sync and unsync both be exposed and let user to decide which to use, or
  2. provide a feature gate to expose either sync/unsync and let user control the feature gate, or
  3. do both, with sync/unsync be unconditionally exported in sub modules, and optional feature gates (like sync/unsync) so that a "default" implementation is exported

Should sync versions be swappable?

For example, let user to chose between future's async mutex and tokio's mutex?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions