mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-10-01 08:13:34 +00:00
use kj's onChildExit mechanism
This reduces code and allows for more idiosyncratic use of Promises. Requires latest capnproto git. Part of #49 refactor
This commit is contained in:
@@ -48,6 +48,8 @@ public:
|
||||
// add a one-shot timer callback
|
||||
kj::Promise<void> addTimeout(int seconds, std::function<void()> cb);
|
||||
|
||||
// get a promise which resolves when a child process exits
|
||||
kj::Promise<int> onChildExit(kj::Maybe<pid_t>& pid);
|
||||
// add a path to be watched for changes
|
||||
void addWatchPath(const char* dpath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user