Module fair_share

Source
Expand description

A mutex which internally uses an intrusive linked list to store nodes in the waiting Futures. Read/write access is guaranteed fair, with FIFO semantics.

WARNING: Don’t mem::forget the access future, or there will be dragons.

Structs§

FairShare
Async fair sharing of an underlying value.
FairShareAccessFuture
Access future.
FairShareExclusiveAccess
Excluseive access to the underlying storage until released or dropped.