heapless icon indicating copy to clipboard operation
heapless copied to clipboard

Add an async implementation of `Queue`

Open datdenkikniet opened this issue 3 years ago • 1 comments

This PR adds an async version/wrapper around spsc::Queue with fallible interfaces that can be used in sync contexts.

Currently it uses a (non-public) single slot queue to store wakers.

We've been running this version of heapless for 2 months now and it's worked well so far.

datdenkikniet avatar Oct 24 '22 17:10 datdenkikniet

Hi, I think heapless should have an async module in where we can look at adding async specific data structures. Maybe @Dirbaio also has some from embassy that would make sense to put here?

korken89 avatar Jan 10 '23 07:01 korken89