lpereira / lwan

Experimental, scalable, high performance HTTP server

Home Page:https://lwan.ws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coroutines can be used standalonish?

Globik opened this issue · comments

I'm wondering if lwan's coroutines can work standalone from lwan server? Let's say as a library? Can be compiled on his own or it's impossible without the lwan's whole stuff?

They can if you respect the license and make some minor changes.
Their dependencies are ucontext, lwan's data structures and stdlib.

Hi @dakerfp I apreciate your answer.
I'll try to compile a small programm using lwan lib. So far I'm just studying the C language. Just couriose about if I can bind the libuv instance with lwan's coroutines. Just because here there are real life practical use cases from lwan's source code I mean "coroutines".

Closing issue as the question has been answered. Feel free to reopen if that's not the case.

@sjnam thank you so much, it's wonderful.
@lpereira thank you too, it's a nice job.

How to coroutinify callbacks??