Module floresta_common::spsc

source ·
Expand description

A no-std Single Producer, Single Consumer channel for unidirectional message exchange between modules. This module don’t use anything from the standard lib and can be easily used in no-std enviroments. We only use mem::take from core.

Structs

  • A (Send + Sync) single producer, single consumer channel to notify modules about things. The api is super minimalistic to reduce external dependecies, including from the std-lib
  • An iterator issued every time someone calls recv.