gpac / signals

A C++11 modular framework
Other
9 stars 7 forks source link

Improve threading: #32

Open rbouqueau opened 8 years ago

rbouqueau commented 8 years ago

General good idea:

kj::Promise<kj::String> contentPromise =
    fetchHttp("http://example.com");

kj::String content = contentPromise.wait(waitScope);

question: could allow monothread with multiple inputs?

easy to say “run the event loop until this promise resolves, then return the result”. https://capnproto.org/cxxrpc.html msvc2015: https://github.com/gordonmcshane/capnproto/tree/vs2015

rbouqueau commented 8 years ago

Related to #14

rbouqueau commented 6 years ago

Modern C++ libuv wrapper: https://github.com/skypjack/uvw