Create a `future` composable
matthunz opened this issue · comments
Matt Hunzinger commented
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)
}