> Does anyone have ideas on how to make an async library for Nim using the 
> esp's event loop? Could it be done using ARC only?

First step would be implementing support for it in the `selectors` module. 
Mostly just need an implementation for these functions, but in practice you can 
get away without implementing all of them: 
<https://github.com/nim-lang/Nim/blob/devel/lib/pure/selectors.nim#L46-L230>.

Once you add support there things should just work. Of course, you'll still 
need to figure out if you can wrangle ARC for your use case. I am playing with 
embedded devices nowadays myself, so this might be the motivation I need to 
figure out a solution here. But to be honest, for my use cases wrapping the 
standard ESP libraries is enough (HTTP server is all I need).

Reply via email to