concoct-rs / concoct

A reactive runtime for embedded systems in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a `future` composable

matthunz opened this issue · comments

Currently there is only a stream composable for working with asynchronous streams. It should be easy to adapt that to support futures. However streams use an mpsc channel while I think futures would only need a one shot. Therefore an enum like the below might work

enum Channel
  Stream(mpsc::Sender),
  Future(oneshot::Sender)
}