Skip to content

ajfrantz/wait-around

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async/await-friendly circular buffer

This library provides a circular buffer that implements AsyncRead and AsyncWrite. It's meant to be useful to embedded applications which want to use async/await but for which the full might of tokio would be overkill.

It's currently in a "no_std-ish" state, where I've put some thought into making it work for no_std + alloc but haven't tested it much in that context. It makes two allocations at buffer creation time (one for the context, one for the storage), and no allocations in normal usage.

Ultimately the goal would be to eliminate the alloc dependency, perhaps by leveraging heapless or arrayvec for the storage and learning when stack-object pinning is safe.

About

async/await-friendly circular buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages